Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$query = " SELECT distinct size FROM sp_goods where goodid='$goodid' order by size asc";
$result = mysql_query($query) or die('Error, query failed');
$results = array();
while($row = mysql_fetch_array($result)) $results[] = $row[0];
function sorta($b, $a)
{
if (($a == "L" && $b == "XL") || ($a == "M" && $b == "L") || ($a == "M" && $b == "XL")) return 1;
else return 0;
}
usort($results, "sorta");
foreach ($results as $wsize)
{
echo $wsize;
}
?>