parse error, unexpected T_STRING
Posted: Wed May 19, 2004 1:18 pm
The following code was generated by Dreamweaver MX(I am 100% sure that the WYSIWYG interface was done correctly), so I am clueless as what to do. I receive the following error:
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in c:\inetpub\wwwroot\day 13\verify.php on line 4
I tried substituting the variables $varUsername and $varPassword in the place of the Request(...) inside the isset function calls and that just got me a new error.
Fatal error: Call to undefined function: request() in c:\inetpub\wwwroot\day 13\verify.php on line 5
I realize its a longshot, but if someone can help me I would greatly appreciate it.
Thanks,
Josh
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in c:\inetpub\wwwroot\day 13\verify.php on line 4
I tried substituting the variables $varUsername and $varPassword in the place of the Request(...) inside the isset function calls and that just got me a new error.
Fatal error: Call to undefined function: request() in c:\inetpub\wwwroot\day 13\verify.php on line 5
I realize its a longshot, but if someone can help me I would greatly appreciate it.
Thanks,
Josh
Code: Select all
<?php require_once('Connections/connDay13.php'); ?>
<?php
$varUsername_Recordset1 = "test";
if (isset(Request("username"))) {
$varUsername_Recordset1 = (get_magic_quotes_gpc()) ? Request("username") : addslashes(Request("username"));
}
$varPassword_Recordset1 = "test";
if (isset(Request("password"))) {
$varPassword_Recordset1 = (get_magic_quotes_gpc()) ? Request("password") : addslashes(Request("password"));
}
mysql_select_db($database_connDay13, $connDay13);
$query_Recordset1 = sprintf("SELECT * FROM tbluserinfo WHERE tbluserinfo.username='%s' AND password='%s';", $varUsername_Recordset1,$varPassword_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connDay13) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>