I actually read an answer here, the user says this happens when your table is not having any autoincrement
column but am already having that, the other is connection is not established, but when I used this
if(!$running_db) {
echo 'False';
} else {
echo 'true'; //Returns me true so connection is establised
}
Than why it is returning me 0
? Actually am inserting on page.php
and after successfully inserted user is redirected to result.php
page where I am echoing out the id using mysqli_insert_id
so that I can highlight the field but it returns me 0 and the table row is thus failing to highlight
P.S Am using procedural way