jeff5656 Posted June 24, 2010 Share Posted June 24, 2010 I get the above error with my code. The error says line 147m which is the 1st line shown below: $qq "select service from services where id = '". $userarray['id'] ."' LIMIT 1"; $results2 = mysql_query ($qq) or die (mysql_error()); $qqr = mysql_fetch_assoc ($results2); Quote Link to comment https://forums.phpfreaks.com/topic/205794-syntax-error-unepected-t-constant-encapsulated-string/ Share on other sites More sharing options...
premiso Posted June 24, 2010 Share Posted June 24, 2010 $qq = "select service from services where id = '". $userarray['id'] ."' LIMIT 1"; You forgot the = after $qq Quote Link to comment https://forums.phpfreaks.com/topic/205794-syntax-error-unepected-t-constant-encapsulated-string/#findComment-1076900 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.