|
Hey, I'm still pretty new to PHP and MySQL and cannot figure out why I keep getting this message every time I submit my registration form:
Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp\www\MyPage.com Beta\processstandard.php on line 186
Here is the code:
$cxn = mysqli_connect ($host, $user, $password, $database)
or die ( "Could not connect to server" );
mysqli_query("INSERT INTO standard (user_name, zip, month, day, email_address, password, question, answer, comments) VALUES ('$user_name', '$zip', '$month', '$day', '$email_address', '$password', '$question', '$answer', '$comments')");
Problem entering users in MySQL database; keep getting error message about "parameters"?
You must pass in the query as the second parameter and the database link ($cxn) as the first parameter.
Problem entering users in MySQL database; keep getting error message about "parameters"?
add the following and try this. I believe this is the problem with the extension.
mysqli_query( $cxn, "insert blah blah blah");
Problem entering users in MySQL database; keep getting error message about "parameters"?
Hi man,
It is hard to figure out the problem with your database because your PHP statement do two tasks
|