• 0

php... only list


Question

in sql i added "type" row... now how can i display in alpabedical (SP?) order, and only the input with a certen "type" in the row ( so row type - wallpapers ) i have 10 inputs with that "type"...

i want it to display

Cool Wallpaper

Drool wallaper

Mezmorized

ect

so i make sometype.php

i have it connect to the db and open the table... now what...

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
$result = @mysql_query ("SELECT * FROM Wallpapers Where type = wall order desc");
if (!$result) {
echo("Error performing query: " . mysql_error () . "end");
exit();
}

Link to comment
Share on other sites

  • 0

ok next i want it to display all the types, but in but the type in alphabedical order, and then with in alphabedical so

Games - Die!

Games - Nukem

Wallpaper - Cool Wall

Wallpaper - Mosaikl

Wallpaper - yo

ect

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.