View Single Post
Old 10-07-2007, 12:12 AM   #25 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

PHP Code:
elseif($_POST['areaCode'] != ''){
                
$szSQL sprintf("SELECT `id` FROM `schools` WHERE `areaCode` LIKE '%%%d%%' ORDER BY `id`"$_POST['areaCode']);
                
$iResult $database->execute($szSQL);
                while(
$iRow mysql_fetch_array($iResultMYSQL_ASSOC)){
                    
print_r($iRow);
                }
            } 

Try that..
Tanax is offline  
Reply With Quote