Jump to content

sorting total array values


wkilc

Recommended Posts

Aplogies for a very dumb question.

 

Variables pulled from MySQL.

 

$First = $First;
$Last = $Last;
$Member = array($Last, $First);

 

This URL will sort by first name:

www.mysite.com?sort=First

 

...will sort by last name:

www.mysite.com?sort=Last

 

How do I get it to sort by the complete array value?

www.mysite.com?sort=Member

...not a valid MySQL result, obviously.

 

~Wayne

 

 

Link to comment
Share on other sites

Very related question...  how can a make my simple form search the array rather than just the first or last names?

 

This is my code for searching first names only:

 

	<form name="form" method="post" action="">
<input type="text" name="First" />
<input type="submit" name="submit" value="Search Names" style="font-size: 0.9em; vertical-align: middle;" />
</form>

 

Thanks,

 

~Wayne

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.