Jump to content

alphabatical order


RON_ron

Recommended Posts

I need to pull data in an alphabatical order based on a certain field.

 

I'm trying to display the results, sorted according to the alphabatical order of the data in addressz... The my code dosen't do that, it pulls the data according to the order which I've entered the data.

 

$SomeVar = $_POST['sta'];
$query = "SELECT * FROM  shops WHERE statez = '".$SomeVar."' ORDER BY addressz ASC";
$results = mysql_query($query);

Link to comment
https://forums.phpfreaks.com/topic/212644-alphabatical-order/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.