Hi
If someone could help me out here I would greatly appreciate it.
I have a query which returns 3 values:
$q= "select field1, field2, field3 from a_table";
$r= mysql_query($q);
while($data = mysql_fetch_array($r)) {
$field1= $datarow['field1'];
$field2= stripslashes($datarow['field2']);
$field3= $datarow['field3];
}
mysql_free_result($r);
However, I will run this query multiple times in different scripts across my new website and therefore would like to have it as a function in a separate function document.
My question is, how do I return all 3 values of this query via a function to the page that calls the function?
Hope that males sense.
Thanks
Gaz