Jump to content

[SOLVED] Missing argument 1 for dispdip()


Raiden619

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.