I have a problem with php, I am programming a php file for show by printf the data of the data base related encrypted_password. I want to pick the value and display it on screen, but does not work, I have done so:
$query = "SELECT * FROM `users` WHERE `email` = '$email' ORDER BY `users`.`uid` ASC LIMIT 0 , 30";
$result = $con->query($query); $row = $result->fetch_array(MYSQLI_ASSOC);
printf ("consulta %s nombre: %s email:(%s) salt: %s y pass: $s\n", $query,$row['name'], $row['email'],$row['salt'],base64_encode($row['encrypted_password']));
and printf shows by screen:
consulta SELECT * FROM users
WHERE email
= 'elvega3009@msn.com' ORDER BY users
.uid
ASC LIMIT 0 , 30 nombre: XXXX email:(xxxxxxxx@msn.com ) salt: a3f7734b0e y pass:
The pass field doesn't show by screen, this data is encode in base64_encode in the data base, I don't know if that is the problem, but I need that this data shows by screen. I need help. Thank very much in advance