[PHP] Using the AS key word in SQL Queries

2002-07-01 Thread Sachin Keshavan
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

RE: [PHP] Passing more than one variable with alink

2002-07-02 Thread Sachin Keshavan
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]]

[PHP] Storing values in Session

2002-07-09 Thread Sachin Keshavan
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

RE: [PHP] hiding submitted variable values in location bar of browser !

2002-07-10 Thread Sachin Keshavan
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

RE: [PHP] need help about this

2002-07-10 Thread Sachin Keshavan
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

RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Sachin Keshavan
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

[PHP] Inclusion error

2002-07-16 Thread Sachin Keshavan
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

[PHP] Re: Inclusion error

2002-07-16 Thread Sachin Keshavan
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

RE: [PHP] Inclusion error contd..

2002-07-16 Thread Sachin Keshavan
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),

[PHP] Session Tracking

2002-07-22 Thread Sachin Keshavan
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