Well I have tried this:
$sql = "SELECT rowno, $Db_base_cd, $Db_lang1_cd FROM phrases WHERE ($Db_base_cd != '' AND $Db_lang1_cd != '') AND level = '$Db_level' AND catmain = '$Db_catmain' AND confirm = 'y' AND rowno BETWEEN '$Db_rowno' AND '$lastrow' LIMIT $hits";
This displays as:
Sql: SELECT rowno, engl, span1, fren, turk FROM phrases WHERE (engl != '' AND span1 != '' AND fren != '') AND level = '1' AND catmain = 'verb' AND confirm = 'y' AND rowno BETWEEN '1' AND '6' LIMIT 5
But I am getting errors, I think it is because some of the rows between 1 and 6 have no data so they do not
satisfy the WHERE (engl != '' AND span1 != '' AND fren != '')
Therefore using the LIMIT may be better but how would this work ?
If I put:
$sql = "SELECT rowno, $Db_base_cd, $Db_lang1_cd FROM phrases WHERE ($Db_base_cd != '' AND $Db_lang1_cd != '') AND level = '$Db_level' AND catmain = '$Db_catmain' AND confirm = 'y' LIMIT $Db_rowno, $hits";
Would this take the next 5 rows that satisfy the rest of the requirements ?