Get an element from the database:
$post = mysqli_query($db, "SELECT * FROM `posts` WHERE `id` = `1`");
translate it into an associative array:
$post = mysqli_fetch_assoc($post);
Get an element from the database:
$post = mysqli_query($db, "SELECT * FROM `posts` WHERE `id` = `1`");
translate it into an associative array:
$post = mysqli_fetch_assoc($post);