I have this problem with my code. I have a database created in myphpadmin , the program connects to it, but when i try to use mysqli_query it keeps showing "not executed". Can you help me? Maybe i'm missing something
<?php
$mysqli_host='localhost'; $mysqli_user='root'; $mysqli_password='';
$conexiune=@mysqli_connect($mysqli_host,$mysqli_user,$mysqli_password);
@mysqli_select_db('materiale',$conexiune);
if(!$conexiune=@mysqli_connect($mysqli_host,$mysqli_user,$mysqli_password))
{
die('cant connect');
}
else
{
echo 'connection success<br>';
}
if($is_query_run=@mysqli_query('SELECT * FROM `user`',$conexiune))
{
echo 'query executed';
}
else
{
echo 'not executed' ;
}
?>
I need to fetch the information from the database bot it will not work if the query isn't working