thugsr Posted January 26, 2012 Share Posted January 26, 2012 greetings guys, can someone tell me what is error in this code? i constantly getting this error " Parse error: syntax error, unexpected T_STRING in C:\wamp\www\diplomski\dodaj_podprojekat.php on line 37"! the code is $nesto=$_SESSION['tema']; $q = "SELECT * FROM projekat WHERE naziv ='$nesto'"; $r = mysql_query($q) or die mysql_error() ; $y = mysql_fetch_object($r); and line in witch is error is $r = mysql_query($q) or die mysql_error() ; Link to comment https://forums.phpfreaks.com/topic/255819-parse-error-syntax-error-unexpected-t_string/ Share on other sites More sharing options...
AyKay47 Posted January 26, 2012 Share Posted January 26, 2012 $r = mysql_query($q) or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/255819-parse-error-syntax-error-unexpected-t_string/#findComment-1311379 Share on other sites More sharing options...
thugsr Posted January 26, 2012 Author Share Posted January 26, 2012 thank you m8! it work now! Link to comment https://forums.phpfreaks.com/topic/255819-parse-error-syntax-error-unexpected-t_string/#findComment-1311388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.