Posted By

onefastsnail on 05/24/12


Tagged


Versions (?)

record data


 / Published in: PHP
 

  1. function brand_data($brand){
  2. $db = new Sql;
  3. $db->query("SELECT * FROM brands WHERE id='$brand'");
  4. $data = array();
  5.  
  6. while($row=$db->fetch_array()){
  7. foreach ($row as $key => $value) {
  8. $data[$key]=$value;
  9. }
  10.  
  11. }
  12.  
  13. return $data;
  14. }

Report this snippet  

You need to login to post a comment.