* converting each record *
**************************/
while(($counter < $totalrecords) and ($fieldname !='dummy') and ($method!='NO_CONV')) { //while there is still something
- $SQL = 'SELECT * FROM '.$prefix.$dbtablename.' ORDER BY id ASC '.sql_paging_limit($counter, $recordsetsize);
- if ($records = get_records_sql($SQL)) {
+ $SQL = 'SELECT * FROM '.$prefix.$dbtablename.' ORDER BY id ASC';
+ if ($records = get_records_sql($SQL, $counter, $recordsetsize)) {
foreach ($records as $record) {
//if we are up this far, either no crash, or crash with same table, field name.