[PHP] Session Tracking
Hello all, This may be a pretty naive question. Do we have to use the key word session_register(variablename); in every single page, in which we plan to use the variablename?. Or is it possible that we register the variablename once, and in the subsequent pages continue to access it using $variablename ? Thanks in advance, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Inclusion error
Failed opening '/var/www/html/BOOKS/newbooks.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in Unknown on line 0 I am getting the following error, when the file newbooks.php is invoked. The first lines in this entire file starts with the ?php tag, followed by 4 lines of comments. What could be the problem here. Thanks in advance, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Inclusion error
Hello all, Thanks for the suggestions. But my .php file does not have any include statement any where in the page. Is there any thing which I have to check out? The site contains 6 .php files, and it is only in this file the error comes. Thanks once again, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Inclusion error contd..
Hello all, Thanks for the suggestions. But my .php file does not have any include statement any where in the page. Is there any thing which I have to check out? The site contains 6 .php files, and it is only in this file the error comes. I have tested this in my local build (Apache server), and the same file executes perfectly. The error comes in the production server, in which PHP is configured by a third party (i.e server admin). Thanks once again, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] 1 Form, 2 Submit-Buttons
Hello, There is a form tag which is like input type=image name=xyz src=abc.jpg value=xyz This will have the same effect as clicking on a HTML submit button. Hope this helps, Sachin. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:36 AM To: 'Martin Thoma'; [EMAIL PROTECTED] Subject: RE: [PHP] 1 Form, 2 Submit-Buttons give each a name and the value of the image clicked should then be in a var. by that name -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: [PHP] 1 Form, 2 Submit-Buttons Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back Next). The buttons should be images. How can I make php see, which button has been pressed? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] hiding submitted variable values in location bar of browser !
It would be better to use POST operation like FORM ACTION=checkpassword.php METHOD=POST If you do this, the parameters will not appear in the URL bar at all. Hope this helps, Sachin. -Original Message- From: Axel Tietje [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] hiding submitted variable values in location bar of browser ! Hi everyone, Is there any way to hide my form submitted variables (like passwords etc) in the location bar http://somedomain.org/checkpassword.php? password=mypassword or atleast show in an encypted form n the location bar. form method=POST HTH, Axel Tietje -- FLYnet FLYer Kommunikationsgesellschaft mbH Weender Landstr. 46 37073 Göttingen 0551-499750 http://www.flynet.de [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] need help about this
You are creating a table which already exists. The easy way to get out of this, is either create a table with a different name or drop the existing table and re-create it. Cheers, Sachin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: [PHP] need help about this Importance: High MySQL Error : Database Error Error Number: 1050 Table 'book_auth' already exists what this meant? what should i do for correct this thaank you for your help sincerly your -- tjandra == This email is confidential and may also be privileged. If you are not the intended recipient, please notify me immediately and delete the original message. You should not copy or use it for any other purpose, nor disclose its contents to any other person. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Storing values in Session
Hello, I want to add a set of values to the session variable $BOOKS. This is the code which I used. if($BOOKS==) { #this seems to be the first book which the user has selected $BOOKS = $bookid; #this param comes from the URL } else { $BOOKS = $BOOKS+,+$bookid; } Here the 'if..' part gets executed, and because of that I cannot add details of another book. I have initialised the session and added the registered the value BOOKS in the previous page. Thanks in advance, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Passing more than one variable with alink
For the link to work correctly, only the first parameter should be seperated by a ?, the remaining ones should be seperated by . For eg: http://localhost.com/sample.php?firstparam=1secondparam=XYZ Hope this helps, Sachin -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing more than one variable with alink I need to pass more than one variable with a link. I cannot see the syntax listed anywhere. I am using : printf (a href=\catalogueitemslist.php?catitempage=%s;?catrange=%s\IMG SRC=\/jpg/buttons/nextset.jpg\ HEIGHT=25 BORDER=0/aLEFT,$catitempage,$catrange); Obviously the separators between the two variablesare incorrect. i.e. I have: ?catitempage=%s;?catrange=%s Can anyone tell me what it should be or where I can find a reference to these sort of syntax problems. Regards Peter Goggin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using the AS key word in SQL Queries
Hello all, I am trying to execute the Query SELECT MAX(RECORDNO) AS MAXREC FROM BOOKS; I am trying to access the value like this while($row = mysql_fetch_array($sql_result)) { $bookID = $row['MAXREC']; } This query fails. Am I doing any thing wrong here. Thanks, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php