dsaba Posted February 27, 2007 Share Posted February 27, 2007 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 Link to comment https://forums.phpfreaks.com/topic/40298-solved-parse-error-syntax-error-unexpected-t_string/ Share on other sites More sharing options...
AndyB Posted February 27, 2007 Share Posted February 27, 2007 missing semi-colon $svideoname = "Charlies Angels"; Link to comment https://forums.phpfreaks.com/topic/40298-solved-parse-error-syntax-error-unexpected-t_string/#findComment-194953 Share on other sites More sharing options...
dsaba Posted February 27, 2007 Author Share Posted February 27, 2007 holy crap i think this means i need to take a break, eyes hurt, get some sleep thanks man Link to comment https://forums.phpfreaks.com/topic/40298-solved-parse-error-syntax-error-unexpected-t_string/#findComment-194956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.