I used mysql_query
, as it is not used anymore I am using MySQLi
.
With this I was left with a doubt.
To display the query error by DIE
is this how it is done?
$sql = $mysqli->query("SELECT * Fron tabela") or die(mysqli_error();
Thank you.