Tomm
12-12-2005, 06:13 PM
Here some code:
$DBhost = "*****";
$DBuser = "*****";
$DBpass = "****";
$DBName = "*******";
$table = "l****";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");
$sqlquery = "INSERT INTO $table VALUES("Testuser", $thisisurl)";
$results = mysql_query($sqlquery);
mysql_close();
But it keeps giveing me:
Parse error: parse error, unexpected T_VARIABLE in *********/index.php on line 21
Line 21 is
$DBhost = "*****"; btw :)
Its sooo annoying please help :(
$DBhost = "*****";
$DBuser = "*****";
$DBpass = "****";
$DBName = "*******";
$table = "l****";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");
$sqlquery = "INSERT INTO $table VALUES("Testuser", $thisisurl)";
$results = mysql_query($sqlquery);
mysql_close();
But it keeps giveing me:
Parse error: parse error, unexpected T_VARIABLE in *********/index.php on line 21
Line 21 is
$DBhost = "*****"; btw :)
Its sooo annoying please help :(