Hey,
I am having real trouble with this code, and for the life of me just can't see or figure out why this won't work. It works every other time I have done it.
I have checked, double checked, tripple checked the table it's coming from.
I'm as lost as an ant in the desert.
me code
$user = $_SESSION['user'];
$productID = $_GET['id'];
$isSql = "SELECT * FROM '$user' WHERE product_id ='$productID'";
foreach ($conn->query($isSql) as $row) {
$isCart = $row['timestamp'];
$isPrice = $row['in_price'];
}
Please someone tell me what I am doing wrong. By the way, its in PDO so please don't bother replying if you don't use PDO.
Thanks heaps.