<?php
$connection = mysqli_connect(`localhost`,`root`,`root`,`blog`);
if($connection == false){
echo "Не удалось подключиться к Базе данных";
echo mysqli_connect_error();
exit();
}
$result = mysqli_query($connection, "SELECT * FROM `articles`");
while( $title = mysqli_fetch_assoc($result )){
}
?>
<?php
$connection = mysqli_connect(`localhost`,`root`,`root`,`blog`);
if($connection == false){
echo "Не удалось подключиться к Базе данных";
echo mysqli_connect_error();
exit();
}
$result = mysqli_query($connection, "SELECT * FROM `articles`");
echo mysql_error($link);
while( $title = mysqli_fetch_assoc($result )){
}
?>