Advertisement
tjromano

list aides function

Aug 23rd, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. //function to get aides that are active
  2. function aides_active(){
  3.  
  4. $result = mysql_query("Select * FROM `aides` WHERE aides_active = '1' ORDER BY aides_ln");
  5.  
  6. $arr = array();
  7. while($r = mysql_fetch_array($result)){
  8.     $arr[] = $r;
  9.     }
  10.    
  11. return $arr;
  12. $num=mysql_numrows($result);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement