PDO
This commit is contained in:
@@ -56,7 +56,7 @@ function generate_tooltip_description($row) {
|
||||
|
||||
$strSQL = "SELECT username,comment,created_at FROM comment WHERE loc_id=".$id;
|
||||
$result = $db->query($strSQL);
|
||||
while ($comment = $result->fetchArray()) {
|
||||
while ($comment = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
$strDescription .= "<div class=\'comment\'>";
|
||||
$strDescription .= "<em>".$comment['username']." schrieb am ";
|
||||
$numDatum = strtotime($comment['created_at']);
|
||||
|
||||
Reference in New Issue
Block a user