[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] 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
[PHP] FPDF
Hello, I'm fetching content from database and printing it on the browser. I want add an link on the same page Click here to view it in PDF. Is it possible to do it using FPDF? If yes, how can I do this? Thank you. Balu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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? ?php session_start(); require_once('connection.php'); $_SESSION['voucher_value'] = $_POST['voucher_to']; if(!($_SESSION['voucher_value'] == b1) ) { $tbl_name = voucher; $kodaikanal = Resident Scientist br / IIA, Kodaikanal br / Observatory br / KODAIKANAL - 624 103; $hosakote = Scientist in-charge br / CREST Campus br / HOSAKOTE - 562 114; $leh_ladakh = Engineer in-charge br / IAO-HANLE br /Fort Road.SKARA br /P.O.Box No.100br /LEH-LADAKH - 194 101 br / (J K); $kavalur = Resident Scientist br / Vainu Bappu Observatory br / 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 br /; print br /; print Search does not find any such records; print br /; 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 br /; print br /; print Records has not been deleted. Please contact administrator; include('footer.php'); exit(); }else { include('header.php'); print br /; print br /; print The record(s) has been successfully deleted from database; print br /; 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 br /; print br /; print Search does not find any such records; print br /; exit(); include('footer.php'); }*/ include('ser_misb.php'); } ?
[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 \ttr\n; echo tdinput type=checkbox name=index // td; foreach ($line as $col_value) { echo \t\ttdnbsp;$col_value/td\n; } //echo tdinput type=button name=vcancel value=Cancel //td; echo \t/tr\n; }
[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?