wkilc Posted August 14, 2010 Share Posted August 14, 2010 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 More sharing options...
wkilc Posted August 14, 2010 Author Share Posted August 14, 2010 I'm an idiot. It would be this: www.mysite.com?sort=Last,First ..no? ~Wayne Link to comment https://forums.phpfreaks.com/topic/210731-sorting-total-array-values/#findComment-1099284 Share on other sites More sharing options...
wkilc Posted August 14, 2010 Author Share Posted August 14, 2010 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 https://forums.phpfreaks.com/topic/210731-sorting-total-array-values/#findComment-1099286 Share on other sites More sharing options...
JasonLewis Posted August 16, 2010 Share Posted August 16, 2010 Sorry but your question doesn't make too much sense to me. What are you trying to do exactly? Link to comment https://forums.phpfreaks.com/topic/210731-sorting-total-array-values/#findComment-1099728 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.