Jump to content

[SOLVED] Parse error: syntax error, unexpected T_STRING


dsaba

Recommended Posts

i get this error message:

Parse error: syntax error, unexpected T_STRING in /home/www/p2mhunt.awardspace.com/testwhatmirrors.php on line 37

 

this is the code, line 37 is where it is mysql_select_db

$svideoname = "Charlies Angels"

mysql_connect("dsfdsfsdf", "sdfdsf", "gdfsgdasfg") or
   die("Could not connect: " . mysql_error());
mysql_select_db("sfdsagasdh");

$result = mysql_query("SELECT fileid FROM mainfilelist WHERE filename = '$svideoname'");

$row = mysql_fetch_row($result);

echo $row; 

 

 

the "ksadljgas" isn't really that, and the db does exist

-confused thanks, i think it may be the syntax of the result variable

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.