> From: Alex Behrens [mailto:[EMAIL PROTECTED]] > ...How can I make it so only one form > selection adds a DESC tag to the query, is this possible? > > I'm using this code: > > $fetch = mysql_query("SELECT * FROM players ORDER BY $var"); > > <select name='var' size='1' style='border-style: solid; border-color: > #025689'> > <option value='name'>Name</option> > <option value='position'>Position</option> > <option value='number'>Number</option> > <option value='grade_num'>Grade</option> > > I want only the Grade option to use the desc option with the > $fetch query.
If you want DESC to go along with grade_num, just put DESC with grade_num: <option value='grade_num DESC'>Grade</option> This seems obvious to me, so I must be missing something. :-) --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php