![]() |
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Scripts and Coding PHP, MySQL, scripts |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | Quick PHP Question
Does anyone know what I can add to get the results to sort by the order_id field, and is descending order? any help appreciated, cheers GW $SQL = "SELECT * FROM jos_vm_order_user_info"; $result = mysql_query($SQL); while ($db_field = mysql_fetch_assoc($result)) { print $db_field['order_id'] . "<BR>"; print $db_field['title'] . "<BR>"; print $db_field['first_name'] . " "; print $db_field['last_name'] . "<BR>"; print $db_field['address_1'] . "<BR>"; print $db_field['address_2'] . "<BR>"; print $db_field['city'] . "<BR>"; print $db_field['zip'] . "<BR> <BR> <BR>"; } mysql_close($db_handle); } else { print "Database NOT Found "; mysql_close($db_handle); } ?>
__________________ Make cash from your website, any website, any sector... That.co.uk Find out more |
| |
| | #2 (permalink) |
![]() |
$SQL = "SELECT * FROM jos_vm_order_user_info order by order_id DESC"; I think if you replace your $SQL line with the line above it'll do what you want. (btw/ change DESC to ASC for ascending)
__________________ Connect with me @ TW:LI:FB | MyWeb | D/L domains4sale | Morecambe London Student Forums Student Books UK promotions agencies |
| |
| | #3 (permalink) |
![]() |
Cheers mate I'll give it a try, Thanks GW
__________________ Make cash from your website, any website, any sector... That.co.uk Find out more |
| |
| | #4 (permalink) |
![]() |
Cheers mae it worked 100%, saed me some time there, owe you one. Thanks GW
__________________ Make cash from your website, any website, any sector... That.co.uk Find out more |
| |
| | #5 (permalink) |
![]() |
No probs GW you made me feel like an expert for today! (usually I'm the person asking php questions on google groups)
__________________ Connect with me @ TW:LI:FB | MyWeb | D/L domains4sale | Morecambe London Student Forums Student Books UK promotions agencies |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| quick question please....?? | Paulo1Chop | General Board | 10 | 10-10-2007 04:31:38 PM |
| quick question on bad faith | Mendis | Domain Name Disputes | 4 | 22-03-2006 09:59:30 PM |