Hi guys
I’ve got a function that reads in the data from db. although sometimes it might return more then 1 result.
Does anyone know a way to get these results from inside the page without it crushing ?
[code=php]
function get_addresses($customer_id, $address_id, $address_type){
$address_search=mysql_query(‘
select address.*,address_type.atype
from
address join address_type on address.atype_id=address_type.atype_id
where
address.customer_id=”‘.$customer_id.'”
and
address.address_id like “%’.$address_id.’%”
and
address_type.atype like “%’.$address_type.’%”;’);
$addresses=mysql_fetch_array($address_search);
return $addresses;
}