phpretard Posted August 1, 2009 Share Posted August 1, 2009 Warning: Wrong parameter count for mysql_query() The error above is a result of: $update_cat=mysql_unbuffered_query("update categories set cat_name='".$_POST['category']."' where id='".intval($_POST['id'])."') ") or die(mysql_query()); I have never seen a "Wrong parameter count" for an update. Any help? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 1, 2009 Share Posted August 1, 2009 The error isn't generated by the call to mysql_unbuffered_query (which should have been obvious from the error message), but from your "or die" action. I assume you wanted to call mysql_error().... Quote Link to comment Share on other sites More sharing options...
phpretard Posted August 1, 2009 Author Share Posted August 1, 2009 Why am I so stupid? Thank you! Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 1, 2009 Share Posted August 1, 2009 Meh, it's the simplest things that are usually the hardest to spot. Quote Link to comment 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.