Jump to content

[SOLVED] Show all data from mysql table


steviez

Recommended Posts


<?php
mysql_connect("your server name, (most of the time, "localhost")", "username", "password") or die(mysql_error());
mysql_select_db("name of database of ip addresses") or die(mysql_error());

$result = mysql_query("SELECT * FROM name of table ip addressed are stored in ")
or die(mysql_error());  

while($row = mysql_fetch_array($result)){
echo $row[0];
echo '<br>';
}
?>

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.