One heck query.

PHP:class admin{ function listAllSubjects($limit){ $l =''; if($limit!=0) $l = ' LIMIT '.$limit; $query = mysql_query("SELECT * FROM `subjects` ORDER BY `title` ASC".$l); $allSubjects = array(); if(mysql_num_rows($query)>0){ while($results=mysql_fetch_assoc($query)){ $allSubjects[] = $results; } return $allSubjects; }else{ return false; } } }


it's actually a small portion of a large query which I'd copied to trouble shoot something![]()


Mixed case field names, terrible naming, etc. I'd rate your query 1 out of 10.![]()
thank god nobody's rating my queries in an official level hereඋබ වගෙම තමයි උබෙ කෝඩිනුත්.The original chunk was in Caps', I copied it and made some modifications and the modifications I did with caps offthank god nobody's rating my queries in an official level here

The original chunk was in Caps', I copied it and made some modifications and the modifications I did with caps offthank god nobody's rating my queries in an official level here
උබ වගෙම තමයි උබෙ කෝඩිනුත්.![]()

Why would anyone use all upper case for field names?

ට්විස්ටඩ්![]()


ට්විස්ටා සීම්ස් ලෙජිට් කියන එක හරියටම සිංහලයට හරවලා කියපන්.
