There have been a number of requests to migrate the Australian FASTWAY Shipping module from OSC MS2 to Zencart, and this is what I am attempting to do. Unfortunately I am stuck on one section.

If someone could help convert the following OSC MS2 MYSQL code to Zencart compliant MYSQL code, I'm certain the module will work.

Code:
$sql = "SELECT * FROM fastway_zones WHERE $topcode >= f_postcode and $topcode <= f_postcode";
$qResult = tep_db_query($sql); 
$rec = tep_db_fetch_array($qResult);
Thanks