Jump to content

[SOLVED] syntax error


182x

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.