My best guess is I'm using the mysql_fetch_assoc incorrectly, but I don't know what else I should use.
Here's the important pieces of the code.
<?php
$qry3 = "SELECT login FROM members WHERE email='$email'";
$result = mysql_query($qry3);
if(!$result)
{
error_log(mysql_error());
die("There was an error with the database. It has been logged.");
}
$login = mysql_fetch_assoc($result);
$qry4 = "SELECT passwd FROM members WHERE email='$email'";
$result1 = mysql_query($qry4);
if(!$result1)
{
error_log(mysql_error());
die("There was an error with the database. It has been logged.");
}
$password = mysql_fetch_assoc($result1);
echo $login . " " . $password;
?>

New Topic/Question
Reply




MultiQuote






|