Posted By

tomdowning on 09/21/11


Tagged

mysql


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zack


MYSQL query


 / Published in: PHP
 

standard db connect query

  1. mysql_connect("localhost", "username","password");
  2. mysql_select_db("db name");
  3. $query = mysql_query("SELECT * FROM");
  4.  
  5. while ($row = mysql_fetch_object($query)) {
  6. $show = $row->description;
  7. };

Report this snippet  

You need to login to post a comment.