Posted By

Meestercor on 02/05/09


Tagged

class textmate amf zend


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

leaase


zend amf class


 / Published in: PHP
 

  1. <?
  2.  
  3. class Tutorials
  4. {
  5. function __construct()
  6. {
  7. # code...
  8. mysql_connect("localhost:8889", "root", "root");
  9. mysql_select_db("information_schema");
  10. }
  11.  
  12. public function getTutorials(){
  13. $result = mysql_query("SELECT * FROM COLUMNS");
  14. $t = array();
  15.  
  16. while($row = mysql_fetch_assoc($result)){
  17. array_push($t, $row);
  18. }
  19. return $t;
  20. }
  21. }
  22.  
  23.  
  24. ?>

Report this snippet  

You need to login to post a comment.