jim.davidson Posted June 2, 2008 Share Posted June 2, 2008 This is the error I'm getting for the following query, Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Sites\vet_shop\tulsapid_list_customers.php on line 130 Here's the query $query_listCust = "SELECT * FROM customer WHERE site_id=$_SESSION['user_site'] ORDER BY last_name ASC"; mysql_select_db($database_tulsapid, $tulsapid); $query_limit_listCust = sprintf("%s LIMIT %d, %d", $query_listCust, $startRow_listCust, $maxRows_listCust); $listCust = mysql_query($query_limit_listCust, $tulsapid) or die(mysql_error()); $row_listCust = mysql_fetch_assoc($listCust); What am I doing wrong? Any guidance will be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/108389-solved-need-some-help-with-a-query/ Share on other sites More sharing options...
jim.davidson Posted June 2, 2008 Author Share Posted June 2, 2008 Oops, Never mind I found it, session variable was a varchar and field was an int. Quote Link to comment https://forums.phpfreaks.com/topic/108389-solved-need-some-help-with-a-query/#findComment-555673 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.