How can i fill my array with PDO statement which have multiple conditions?
$stmt = $conn->prepare("SELECT *
FROM the_table
WHERE stmt1 = '$value1'
AND stmt2 = '$value2'
ORDER BY sent_date");
$stmt->execute();
$row = $stmt->fetchAll();
So, this works, but I need the of the table data from my table, because I going to get only the first statement values. What I mean? If my first value (like $value1) is out the selecting change to the second statement's value (like $value2). And i will get all of my table data where exists $value1 and $value2 I need the values an array like $row
Sorry for this composition :D. Thanks in advance.
I need the of the table data from my table2.If my first value (like $value1) is out the selecting change to the second statement's value (like $value2).3.I need the values an array like $row.