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

Thanks! I think that might work if that is all that is running in the script. :(

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);
echo $vb["customerFirstName"];
return array(
"first_name" => $vb["customerFirstName"],
"last_name" => $vb["customerLastName"],
"email" => $vb["customerEmailAddress"]
);

echo $arr["first_name"];

}
The line:
Quote:
echo $vb["customerFirstName"];
works right before the 'return array' statment. I'm just not understanding why this line:
Quote:
echo $arr["first_name"];
won't show the variable. It is almost like my array is not being setup.
smrtalex is offline  
Reply With Quote