genzedu777 Posted February 5, 2011 Share Posted February 5, 2011 Hi all, I have received this error, and I could clearly recall I did not actually change any content in the file. May I know how should I debug it? Thanks Warning: mysqli_error() expects exactly 1 parameter, 0 given in D:\inetpub\vhosts\abc.com\httpdocs\inc\php\tutor\t_reg_post1.php on line 163 Quote Link to comment https://forums.phpfreaks.com/topic/226764-mysqli_error-expects-exactly-1-parameter-0-given/ Share on other sites More sharing options...
fxuser Posted February 5, 2011 Share Posted February 5, 2011 try adding your dbconnection as parameter on the mysqli_error(); and check if it helps Quote Link to comment https://forums.phpfreaks.com/topic/226764-mysqli_error-expects-exactly-1-parameter-0-given/#findComment-1170169 Share on other sites More sharing options...
genzedu777 Posted February 5, 2011 Author Share Posted February 5, 2011 Hi fxuser, Thanks for your help, in fact with your advice, it tinkers me to add $dbc in my error, I have found it already. Thank you mysqli_query($dbc, $query5) or die(mysqli_error($dbc)); Quote Link to comment https://forums.phpfreaks.com/topic/226764-mysqli_error-expects-exactly-1-parameter-0-given/#findComment-1170173 Share on other sites More sharing options...
PFMaBiSmAd Posted February 5, 2011 Share Posted February 5, 2011 This is like the third thread where you have had this same problem with leaving out the link parameter in the mysqli_error() statement. Quote Link to comment https://forums.phpfreaks.com/topic/226764-mysqli_error-expects-exactly-1-parameter-0-given/#findComment-1170240 Share on other sites More sharing options...
genzedu777 Posted February 5, 2011 Author Share Posted February 5, 2011 Hi PFMaBiSmAd, It was an old code, sometime before I was being taught of putting the $dbc into my mysqli_error. It will not happen again! Quote Link to comment https://forums.phpfreaks.com/topic/226764-mysqli_error-expects-exactly-1-parameter-0-given/#findComment-1170286 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.