Connect to the MySQL database on PHP. Function example open

Connect to the MySQL database on PHP. Function example

With the procedural approach, the mysqli_query() function is called for execution, into which the connection object and the SQL command to be executed are passed:

$conn = mysqli_connect("localhost", "root", "password");
mysqli_query($conn, $query);

function mysqli_query() returns true or false.

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