id | Username | = ($boolUserinfo) ? "Alter | Transport | " : ""; ?>Topic | Beschreibung | = ($boolRating) ? "" : "" ?> | Kommentare | Mangel | Bild | Adresse | Karte | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
".$id." | "; echo "". stripslashes($row['username']) ." ". $strDatum . " | ";
echo ($boolUserinfo) ? "".$row['age']." | ".$row['transport']." | " : ""; echo "".$arrIcon[$row['topic']]." ".$arrTopic[$row['topic']]." | "; echo "" . stripslashes(nl2br($row['description'])) . " | "; echo ($boolRating) ? "".$row['thumb_ups']." | ".$row['thumb_downs']." | " : ""; echo ""; $strSQL = "SELECT id,username,comment,created_at FROM comment WHERE loc_id=".$id; $comments = $db->query($strSQL); while ($comment = $comments->fetch(PDO::FETCH_ASSOC)) { echo " | "; $strDefect = (isset($row['defect']) && $row['defect']>0) ? $arrDefect[$row['defect']] : ""; echo "".$strDefect." | \n"; echo ""; $strSQL = "SELECT id,filename FROM files WHERE loc_id=".$id; $files=$db->query($strSQL); if ($file=$files->fetch(PDO::FETCH_ASSOC)) { echo ""; } echo " | "; echo "".$row['road']." ".$row['house_number']." ".$row['neighbourhood']." " .$row['hamlet']." ".$row['suburb']." ".$row['postcode']." ".$row['city']." | ";
//echo "".round($row['lat'],5)." ".round($row['lng'],5)." | "; echo "\n"; echo " |
"; echo nl2br($comment['comment']); echo "