I'm getting: Warning: Invalid argument supplied for foreach()
foreach ($dbh->query('SELECT id, state_county_key, org_type, org_name, contact_name, address, city, state, zip_code, phone, website FROM listing WHERE state_county_key = 39 AND enabled = 1 LIMIT $offset,$rowsperpage') as $row)
Could it possibly be since there are no values getting set to $row I'm receiving that error? Or is there something wrong with my query structure such as the proper use of single and double quotes? Those quotes always confuse me. Any help/suggestions are greatly appreciated.
-Thanks,
Rich