Hey. Basically I need to get records base off two requirements
when i make the query like this
$query = "SELECT asReportID, ADtransnum FROM $reports_table WHERE asReportID = $controlnumber AND RAgency2 = $id
$order_by_str $sort_order_str $limit_str";
it doesn't work.
however if its just
$query = "SELECT asReportID, ADtransnum FROM $reports_table WHERE asReportID = $controlnumber
$order_by_str $sort_order_str
$limit_str";
It works fine. Any ideas? Note- not sure if it makes a difference but RAGency2 is an INT(11) in the DB