Answer the question
In order to leave comments, you need to log in
A modern version of connecting to the database of bathhouses (php)?
I saw these options:
<?php
function cont_load()
{
$loading= mysqli_connect('localhost', 'root', '', 'user_site');
$result= mysqli_query($loading, "SELECT content FROM `posting` WHERE id=1");
while ($a= mysqli_fetch_array($result)) {
echo $a['content'] . "<br />";
}
mysqli_close($loading);
}
?>
<?php
//Константы для соединения с базой данных
define('HOST', 'localhost'); //путь к серверу базы данных
define('USER', 'root');
define('PASSWORD', '');
define('DB', 'minicms');
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question