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); 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 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
Archived
This topic is now archived and is closed to further replies.