why does this not work?
pete
PHP Code:
function call(){
global $getdata,$data;
$getdata="";
$sql="select guide,current_price,qty_left,p_and_p from current_drops";
$result=mysql_query($sql);
while ($data=mysql_fetch_array($result)){
$getdata="guide=".$data[0]."&pricedrop=".$data[1]."&qtyleft=".$data[2]."&pandp=".$data[3];
}
return $getdata;
}
$rose=call();
print_r($rose);
Comment