Raiden619 Posted January 6, 2008 Share Posted January 6, 2008 hey can anyone help me what exactly does this mean?? Warning: Missing argument 1 for dispdip() in /home/www/stealth-force.freehostia.com/functions.php on line 2465 Warning: Missing argument 2 for dispdip() in /home/www/stealth-force.freehostia.com/functions.php on line 2465 Link to comment https://forums.phpfreaks.com/topic/84701-solved-missing-argument-1-for-dispdip/ Share on other sites More sharing options...
marcus Posted January 6, 2008 Share Posted January 6, 2008 Custom function, we're going to need to see code. Link to comment https://forums.phpfreaks.com/topic/84701-solved-missing-argument-1-for-dispdip/#findComment-431669 Share on other sites More sharing options...
Raiden619 Posted January 6, 2008 Author Share Posted January 6, 2008 this is the line it calls for function dispDip($sortby, $sortorder){ $SORT_END = 'ORDER BY clan ASC'; if(!empty($sortby) && !empty($sortorder)) { $SORT_END = 'ORDER BY '.$sortby.' '.$sortorder; } and the file it loads i guess is this <?php if(authenticate($username, $password, 21)) { dispDip(); echo(" <p> <table width=330 cellspacing=0 cellpadding=0> <tr><td> <center><b>$fontString <font size=4>Modify Diplomacy</font> </td></tr> <tr><td width=400 bgcolor=$tableColor><center> $fontString <b> <a href=add_Clan.php>Add Clan</a> <b>|</b> <a href=rem_Clan.php>Remove Clan</a> <b>|</b> <a href=mod_Clan.php>Modify Clan</a> </b></center> </td></tr> <tr><td bgcolor=$tableColor colspan=2><br> <center><font size=2 face=verdana><b><a href=main.php>Return to main menu</font></b></center> </td></tr> </table> "); } ?> Link to comment https://forums.phpfreaks.com/topic/84701-solved-missing-argument-1-for-dispdip/#findComment-431672 Share on other sites More sharing options...
marcus Posted January 6, 2008 Share Posted January 6, 2008 You need to have both a sort and order by variable. You can remove this fuss and do something like: function dispDip($sortby = 'clan', $sortorder = 'ASC'){ $SORT_END = "ORDER BY ".$sortby." ". $sortorder; } Link to comment https://forums.phpfreaks.com/topic/84701-solved-missing-argument-1-for-dispdip/#findComment-431675 Share on other sites More sharing options...
Raiden619 Posted January 6, 2008 Author Share Posted January 6, 2008 ok that removed the error thx Link to comment https://forums.phpfreaks.com/topic/84701-solved-missing-argument-1-for-dispdip/#findComment-431679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.