query("SELECT * FROM user WHERE user_id =$user_id"); if ($checkIfExists) { if($checkIfExists->num_rows === 0) { include "404.php"; } else { if ($sql = $mysqli->prepare("SELECT * FROM user WHERE user_id =$user_id ")) { $sql->execute(); $sql->bind_result($user_id,$username,$email,$password,$avatar, $about_short, $about_me, $about_blog, $FB, $TW); while ($sql->fetch()) { ?>

close(); } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); $trash = ''; if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id=$user_id ORDER BY data_dodania DESC")) { $checkIfHasPost = $mysqli->query("SELECT * FROM post WHERE blog_id=$user_id"); if ($checkIfHasPost) { if($checkIfHasPost->num_rows === 0) {?>

Brak Postów

Najnowsze Wpisy

execute(); $sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date); while ($sql->fetch()) { ?> close(); } } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); $mysqli->close(); } } } else{ include "404.php"; } ?>