PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Mon Aug 20, 2007 11:39 pm
Do this:
Code: Select all
<?php
$info2 = mysql_query("SELECT * FROM `userbase` WHERE email_address = '{$email_address}' ");
if(!$info2){
die("Could not get user info");
}
$info2 = mysql_fetch_array($info2);
echo '<pre>' . print_r($info2, true) . '</pre>';
exit;
?>
And post back what is on the screen.
4Boredom
Forum Contributor
Posts: 176 Joined: Tue Nov 08, 2005 4:29 pm
Post
by 4Boredom » Mon Aug 20, 2007 11:39 pm
thank you everah the error was in that script ... it was reclyced and called for user2 in some functions
Code: Select all
// Get other required user infomation
$user_first_name = $info['first_name'];
$user_last_name = $info['last_name'];
$user_age = $info['age'];
$user_location = $info['location'];
$user_party = $info['party'];
$user_gender = $info['gender'];