obviousl
11-06-2004, 08:43 PM
Hey all,
This is the error I am getting :
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in authenticate.php on line 19
This is authenticate.php (from line 14 to 24) :
mysql_select_db( 'database' )
or die ( 'Unable to select database.' );
// Formulate the query
$sql = "SELECT * FROM table WHERE `id` = $_POST['usr'] AND `password` = $_POST['pwd']";
// Execute the query and put results in $result
$result = mysql_query( $sql )
or die ( 'Unable to execute query.' );
Any ideas what has gone wrong ? I am still learning php so this is a bit of a learning curve for me. Thanks in advance for any help given !
Chris
This is the error I am getting :
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in authenticate.php on line 19
This is authenticate.php (from line 14 to 24) :
mysql_select_db( 'database' )
or die ( 'Unable to select database.' );
// Formulate the query
$sql = "SELECT * FROM table WHERE `id` = $_POST['usr'] AND `password` = $_POST['pwd']";
// Execute the query and put results in $result
$result = mysql_query( $sql )
or die ( 'Unable to execute query.' );
Any ideas what has gone wrong ? I am still learning php so this is a bit of a learning curve for me. Thanks in advance for any help given !
Chris
