im trying to get two separate columns of a database to CONCAT together in a check.
What i currently have is
<?php
$retrieve = "SELECT * FROM `Dogs` WHERE CONCAT(`Date`,
`Time`) =". $_GET["id"];
$result = $conn->query($retrieve);
while($row = $result->fetch_assoc()) {
echo $row['Name'] . $row['Date'] .
$row['Time'];
}
?>
However, it doesn't seem to be compiling, and im stumped as to where i've gone wrong with it, as it should be merging the two together? I know the Get is working as i have an echo printing it out, and does so correctly.
Any guidance is helpful
The error i receive, is
You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near ':00:00' at
line 1