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()); } Link to comment https://forums.phpfreaks.com/topic/60638-solved-syntax-error/ 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. Link to comment https://forums.phpfreaks.com/topic/60638-solved-syntax-error/#findComment-301681 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! Link to comment https://forums.phpfreaks.com/topic/60638-solved-syntax-error/#findComment-301687 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.