While Loop from MySQL Query


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $sql = "SELECT * FROM table WHERE column = 1";
  2. $result = mysql_query( $sql );
  3.  
  4. while( $fetch = mysql_fetch_array( $result ) ) {
  5. extract( $fetch, EXTR_OVERWRITE );
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.