How to translate an element from a MySQL database into an as... open

How to translate an element from a MySQL database into an associative PHP array. Code example

Approved. Code works!
This is exactly the working code that is verified by the moderator or site administrators

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);
0

More

Leave a Reply

Your email address will not be published. Required fields are marked *

How many?: 22 + 22

lil-code© | 2022 - 2024
Go Top
Authorization
*
*
Registration
*
*
*
*
Password generation