most likely it needs to be
elseif
no space!
Someone elsemight see something else
-Original Message-
From: server-matrix <[EMAIL PROTECTED]>
Sent: Jul 29, 2004 11:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP help: login.php T_ELSE error
Please could somebody help me with this. I'
i found some mistakes here!
if register_globals = Off in php.ini
$query="INSERT INTO login VALUES (" . $_POST['login'] . ")";
if register_globals = On in php.ini
$query="INSERT INTO login VALUES (" . $login . ")";
Rodel D. Bautista wrote:
Sir, kindly try these lines:
1) $query="INSERT INTO login
Sir, kindly try these lines:
1) $query="INSERT INTO login VALUES ("$_POST('login')")";
2) $query="INSERT INTO login VALUES ("$_REQUEST('login')")";
or check in your php.ini file the line
register_globals = on/off
should be "on" if you wish to use
$query="INSERT INTO login VALUES ("$login")";
Not
General hints - if you find a query is not working use a gui tool and
try the exact query manually.
Eg place in the script
echo "Line 5 qry:".$query."";
Then copy the output into a gui tool (such as mysqlmanager) and run it,
it will pretty quickly tell you whats wrong.
However a good starting
I presume you have v4.2 of PHP installed...
Globals are off by default so use $_POST['id'] in course.php or set
register_globals to on in php.ini (security implications however)
-Original Message-
From: mathew jose seby [mailto:[EMAIL PROTECTED]]
Sent: 23 August 2002 23:23
To: [EMAIL PRO