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? Link to comment https://forums.phpfreaks.com/topic/168397-solved-wrong-pram-count-for-an-update/ 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().... Link to comment https://forums.phpfreaks.com/topic/168397-solved-wrong-pram-count-for-an-update/#findComment-888276 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! Link to comment https://forums.phpfreaks.com/topic/168397-solved-wrong-pram-count-for-an-update/#findComment-888280 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. Link to comment https://forums.phpfreaks.com/topic/168397-solved-wrong-pram-count-for-an-update/#findComment-888285 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.