PHP Query:
<?php
$query = $db->prepare('SELECT * FROM Locations WHERE user_id = :id LIMIT 0, 5');
$query->bindParam(":id",$id);
$result = $query->execute();
$rows = $query->fetch();
foreach ($rows as $row) {
echo $row["timestamp"]; "<br />";
}
?>
Two lines to be printed (timestamp):

What actually prints: +1188 ((22
Error in console: PHP Warning: invalid line offset "timestamp" in / Sites / pages / user _account.php on line 73 - line 73 is an echo line ... inside the fork.
Any help would be greatly appreciated.
source
share