View Single Post
Old 04-24-2009, 04:42 AM   #13 (permalink)
smrtalex
The Wanderer
 
Join Date: Aug 2008
Posts: 8
Thanks: 0
smrtalex is on a distinguished road
Default

It has to be in my 'return' command. This works:

Quote:
function info($user) {

$esc = mysql_real_escape_string($user, $this->res);
$source = $this->source;
$tbl = $source["tableprefix"];
$rs = mysql_query("SELECT * FROM ".$tbl." WHERE customerEmailAddress = '$esc'",$this->res);

$vb = mysql_fetch_array($rs);

$a = array(
"first_name" => $vb["customerFirstName"],
"last_name" => $vb["customerLastName"],
"email" => $vb["customerEmailAddress"]
);


echo $a["first_name"];

}
Now I'm really lost. Anyone have any thoughts on the 'return' statement?
smrtalex is offline  
Reply With Quote