Jump to content

mysqli_error() expects exactly 1 parameter, 0 given


genzedu777

Recommended Posts

May I know what does this mean, this is the code which they are referring to. I have tried troubleshooting, still could not find the cause, appreciate if anyone can help? Thanks

 

Warning: mysqli_error() expects exactly 1 parameter, 0 given in D:\inetpub\vhosts\championtutor.com\httpdocs\inc\elements\t_reg_post1.php on line 204

 

/**INSERT into tutor_musical_background table**/

foreach($musics as $music) {

$query6 = "INSERT INTO tutor_musical_background (tutor_id, musical_instrument_id) VALUES ('$tutor_id', '$music')";

 

$results6 = mysqli_query($dbc, $query6)

or die(mysqli_error());

 

May I know what does this mean, this is the code which they are referring to. I have tried troubleshooting, still could not find the cause, appreciate if anyone can help? Thanks

 

Warning: mysqli_error() expects exactly 1 parameter, 0 given in D:\inetpub\vhosts\championtutor.com\httpdocs\inc\elements\t_reg_post1.php on line 204

 

/**INSERT into tutor_musical_background table**/

foreach($musics as $music) {

$query6 = "INSERT INTO tutor_musical_background (tutor_id, musical_instrument_id) VALUES ('$tutor_id', '$music')";

 

$results6 = mysqli_query($dbc, $query6)

or die(mysqli_error());

 

 

try :

 

$query6 = "INSERT INTO tutor_musical_background VALUES ('$tutor_id','$music')";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.