PHP loop shows the database content who helped me write a PHP loop to show the database content code .. Host LOCALHOST user root password & lt; null & gt; table test field acc uses the code shown in the table for the content in this field. ------ Solution ------------------ PHPcode $ linkmysql_connect (& quot; localhost & quot;, & q PHP cyclically displays the database content
Who will help me write a PHP code to show the database content in a loop ..
Host LOCALHOST
User root
Password <Null>
Table test
Field acc
Use the code shown in the table for the content in this field.
------ Solution --------------------
PHP code
$ Link = mysql_connect ("localhost", "root") or die ("fail ". mysql_error (); mysql_select_db ('first', $ link) or die ('failed '. mysql_error (); $ query_pag_data = "SELECT acc from test"; $ result_pag_data = mysql_query ($ query_pag_data) or die ('MySQL error '. mysql_error (); while ($ row = mysql_fetch_array ($ result_pag_data) {// use $ row ['ACC '] here}