prepare("SELECT * FROM post WHERE blog_id IN (SELECT user_id FROM user WHERE username='$user' AND password='$password') ORDER BY data_dodania")) { $sql->execute(); $sql->bind_result($post_id,$trash,$title,$description,$main,$img,$date,$mod_date); while ($sql->fetch()) { echo ""; } $sql->close(); } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin. $user $password" ); $mysqli->close(); ?>
ID Postu Tytuł Meta Description Data dodania Data modyfikacji
$post_id $title $description $date $mod_date Edytuj Usuń
Dodawanie nowego
Logout