182x Posted July 18, 2007 Share Posted July 18, 2007 hey guys the following code is giving me this error: Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\a\te.php on line 62 just wondering whats up with it? Thanks. $ge= "SELECT * FROM t WHERE em= $pro"; $qu= mysql_query($ge, $link_id) or die(mysql_error()); if (mysql_num_rows($qu==0 ) { $st=mysql_fetch_array($qu); $st="INSERT INTO ta VALUES ('','','{$st['emp']}','{$st['te']}', '{$st['y']}','{$storeInfo2['up']}','{$st['up']}')"; $r = mysql_query($st, $link_id)or die(mysql_error()); } Quote Link to comment Share on other sites More sharing options...
Wildbug Posted July 18, 2007 Share Posted July 18, 2007 You haven't closed the mysql_num_rows() function. Quote Link to comment Share on other sites More sharing options...
182x Posted July 18, 2007 Author Share Posted July 18, 2007 DOH! I was looking at that for ages and didn't even notice. Thanks! 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.