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() ; Quote Link to comment 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()); Quote Link to comment Share on other sites More sharing options...
thugsr Posted January 26, 2012 Author Share Posted January 26, 2012 thank you m8! it work now! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.