I am trying to get result from a prepared SELECT query, but i get this error :
PHP Notice: Trying to get property of non-object in /..../php/my.php on line 50
Here is the code :
// Prepared statement
$queryA = $pdo->prepare("SELECT * FROM test WHERE a_id = :id AND created_email = :email");
// Execute statement
$result = $queryA->execute(array(
'id' => $id,
'email' => $emailAddress
));
if ($result->num_rows > 0) { // Line 50
while($row = $result->fetch_assoc()) {
...