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

Please forgive me if I don't know how to utilize your code. Here is the code I am using:

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);

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

}
Again, I know the values of:

$vb["customerFirstName"]
$vb["customerLastName"]
$vb["customerEmailAddress"]

are correct right before the 'return array' statement. How do I view the contents of ("first_name", "last_name", and "email") after the 'return array' statement to ensure that they have the correct values passed to them? Or where can I input your code to see?

Thanks for your assistance!
smrtalex is offline  
Reply With Quote