I have a table teldir2 having three fields Name,phone,category.
I want to echo the records where category is Stores. in decending order by name. But i get error
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
here is my code.... I really need help... in very short time....
$getdata = @(" select Name,phone,category from teldir2 where category='Stores' ORDER BY Name DESC");
while($r=mysql_fetch_array($getdata)){
extract($r);
echo("<b>$Name on $category<BR><BR>$phone</b>");
}