Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Display Webpage Sorted by Favorites, then rest of the Table for a User

$
0
0

I have a table that list products. Users come to the website, mySQL database and classic ASP, and select products as a favorite. How do I display the page with the products selected as Favorite, A-Z first, then the remaining products A-Z again? I can do this in Access, but the web DB is not responding favorably.  It's the same as you see on website like Fandango when you select your favorite theater. Example

Product TableUser FavoritesDesired Result for U = 123
IDProductIDProductUserIDProductFavorite
1Product A1Product A1231Product A*
2Product B4Product T4566Product F*
3Product M6Product F1234Product T*
4Product T2Product B4562Product B
5Product E1Product A7895Product E
6Product F4Product T1233Product M
7Product Q6Product F7897Product Q
8Product R8Product R3218Product R
9Product X5Product E3219Product X

Viewing all articles
Browse latest Browse all 488

Trending Articles