prepare("SELECT * FROM post WHERE post_id = 18")) { $sql->execute(); $sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date); while ($sql->fetch()) { echo "
\"\"

$title

$description

$main

$date

"; } $sql->close(); } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); if ($sql = $mysqli->prepare("SELECT * FROM comments ORDER BY comment_id")) { $sql->execute(); $sql->bind_result($comment_id,$post_id,$username,$tekst,$data_dodania, $data_modyfikacji); echo "

Komentarze

"; while ($sql->fetch()) { echo "
$username
$tekst
$data_modyfikacji
"; } $sql->close(); } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); echo "

Dodaj komentarz:

"; $mysqli->close(); ?>