Jump to content

[SOLVED] need some help with a query


jim.davidson

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/108389-solved-need-some-help-with-a-query/
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.