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_errorin the die statement will tell you exactly what is
wrong as opposed to a generic error message.


![Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:[duplicate] Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:[duplicate]](http://www.mshxw.com/aiimages/31/408193.png)
