Warning: mysqli_select_db() expects exactly 2 parameters, 1 given

mysqli_select_db() should have 2 parameters, the connection link and the database name –

mysqli_select_db($con, 'phpcadet') or die(mysqli_error($con));

Using mysqli_error in the die statement will tell you exactly what is wrong as opposed to a generic error message.

Leave a Comment