Answer the question
In order to leave comments, you need to log in
How to write data to an array from MySQL?
[146] $data=$pdo->prepare("SELECT phone FROM `users` WHERE `phone`=?");
[147] $data->execute(array($wildlogin));
[148]
[149] $data = $data->fetchAll();
[150]
[151] if ($data[4] == $wildpassword or $data[5] == $wildpassword) {
[152] return $data;
[153] }
Notice: Undefined offset: 4 in C:\xampp\htdocs\lib\functions.php on line 151
Notice: Undefined offset: 5 in C:\xampp\htdocs\lib\functions.php on line 151
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question