[PHP] Language construct
Hello all, I'm new to this group and I'm learning PHP. I want to know what is the exact definition for "Language Construct". Could someone please explain about this?
[PHP] Login should not allow users to login if the application is logged in with the same login credentials
Hello, I've written a simple application, where users need to login to access the features of the application. I want to develop login system such that, if user is already logged in, the application should not allow the users to login with the same login credentials. How do I accomplish this? Regards, Balu
[PHP] Delete rows from database
Hi all, I'm searching names from MySQL and printing it on a browser. Also, I've provided checkbox for all the rows and a delete button for a page. I want to delete the selected rows from MySQL when I click on the "Delete" button. How do I do that? Here is the code which I used to print the rows after fetching the same from MySQL while ($line = mysql_fetch_array($resultset, MYSQL_ASSOC)) { echo "\t\n"; echo ""; foreach ($line as $col_value) { echo "\t\t $col_value\n"; } //echo ""; echo "\t\n"; }
[PHP] Problem with sessions.
Could someone help with this code? It is a search and delete program. I'm executing bunch of code within if-else statement. After searching the records in else block the code is redirecting to if block. I'm not able delete the records in else block. How do avoid the control move to if block? IIA, Kodaikanal Observatory KODAIKANAL - 624 103"; $hosakote = "Scientist in-charge CREST Campus HOSAKOTE - 562 114"; $leh_ladakh = "Engineer in-charge IAO-HANLE Fort Road.SKARA P.O.Box No.100LEH-LADAKH - 194 101 (J & K)"; $kavalur = "Resident Scientist Vainu Bappu Observatory KAVALUR - 635 701"; $_SESSION['voucher_value'] = $_POST['voucher_to']; if($_SESSION['voucher_value'] == k1) { $add_val = $kodaikanal; } elseif($_SESSION['voucher_value'] == h1) { $add_val = $hosakote; } elseif($_SESSION['voucher_value'] == l1) { $add_val = $leh_ladakh; } elseif($_SESSION['voucher_value'] == k2) { $add_val = $kavalur; } if ( !(isset ($_POST['delete']) ) ) { $_SESSION['name_voucher']= $_POST['search_name']; } $search_temp = $_SESSION['name_voucher']; if(isset($_POST['delete'])){ //$checkboxID= $_POST['checkbox']; $array= $_POST['checkbox']; foreach ($array as $key=>$value) { $sql1 = "DELETE FROM $tbl_name WHERE voucher_number='$array[$key]'"; $result1 = mysql_query($sql1); } } $sql="SELECT * FROM $tbl_name where name='$search_temp' && address='$add_val'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if ($count == 0) { include('header.php'); print ""; print ""; print "Search does not find any such records"; print ""; exit(); include('footer.php'); } include('ser_mis.php'); } else { $tbl_name = "voucherb"; if ( !(isset ($_POST['delete']) ) ) { $_SESSION['name_voucher']= $_POST['search_name']; } $search_temp = $_SESSION['name_voucher']; if(isset($_POST['delete'])){ //$checkboxID= $_POST['checkbox']; $array= $_POST['checkbox']; foreach ($array as $key=>$value) { $sql1 = "DELETE FROM $tbl_name WHERE voucher_number='$array[$key]'"; $result1 = mysql_query($sql1); } if(!(mysql_affected_rows() == 1)) { include('header.php'); print ""; print ""; print "Records has not been deleted. Please contact administrator"; include('footer.php'); exit(); }else { include('header.php'); print ""; print ""; print "The record(s) has been successfully deleted from database"; print ""; exit(); include('footer.php'); } } $sql="SELECT * FROM $tbl_name where name='$search_temp'";// && address='$add_val'"; $result=mysql_query($sql); $count=mysql_num_rows($result); /*if ($count == 0) { include('header.php'); print ""; print ""; print "Search does not find any such records"; print ""; exit(); include('footer.php'); }*/ include('ser_misb.php'); } ?>
[PHP] Digital signature
Hello, Is it possible to digitally signature on PHP document using PHP? Balu
Re: [PHP] Digital signature
Hello Todd, Sorry about the typo error in my previous email. My question is, how to digitally sign on PDF document using PHP? I searched web, but could not get more information on this topic. Could you please give me an example on how to digitally sign on PDF document using PHP? Balu On Tue, Sep 30, 2008 at 10:08 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Balasubramanyam A [mailto:[EMAIL PROTECTED] > > Is it possible to digitally signature on PHP document using PHP? > > S. T. F. W. > > http://www.pgpi.org/ > > That should at least get you started. > > > Todd Boyd > Web Programmer > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >