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
https://forums.phpfreaks.com/topic/210731-sorting-total-array-values/
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

Archived

This topic is now archived and is closed to further replies.

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