I\'ve tried other answers similar to mine but in vain.
Here is the code.
The problem is exactly what the error message says.
Line 15 is:
mysql_query($insdb,$con);//line 15
$con
is defined on line 3.
$con=isset($_POST['con']);
This is indeed a boolean indicating if $_POST['con']
exists. mysql_query
expects a 2nd parameter that indentifies the connection (whatever mysql_connect
returns) -if- you define it. I don't think that is needed here, so simply remove the second parameter and I think it should work.