Forum Moderators: coopster
$MySQL = '
SELECT
SQL_CALC_FOUND_ROWS
country
FROM
countries
ORDER BY
country
LIMIT
' . (($pagination->get_page() - 1) * $records_per_page) . ', ' . $records_per_page . '
'; $MySQL = '
SELECT
SQL_CALC_FOUND_ROWS
`last`,`first`,`mate`,`address`
FROM `homeownersnew` WHERE LIKE $last."%"
LIMIT
' . (($pagination->get_page() - 1) * $records_per_page) . ', ' . $records_per_page . '
'; {$last = "s"; //$_POST['Last'];
which gives an error: Home Owners in Belmont Farms Last Name is s. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"%" LIMIT 18, 18' at line 4