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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.