Hi all,
I have this code so far:
?
mysql_connect(localhost, USER, PASS);
mysql_select_db(DB);
$result = mysql_query(SELECT * FROM tbl);
?
Inside one of my tables, I have one field called IP which contains just over
a thousand IP addresses. I would like these IP addresses to be displayed
Hi
Next time you can find a lot of information about this on www.php.net.
Check out this example:
?php
$conn = mysql_connect(localhost, mysql_user, mysql_password);
if (!$conn) {
echo Unable to connect to DB: . mysql_error();
exit;
}
if
$mysql_link = mysql_connect(localhost, USER, PASS);
mysql_select_db(DB, $mysql_link);
$SQL = SELECT * FROM tbl;
$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
echo table border=1 cellpadding=5;
while($resultat = @mysql_fetch_array($result)) {
echo trtd
[EMAIL PROTECTED] wrote:
$mysql_link = mysql_connect(localhost, USER, PASS);
mysql_select_db(DB, $mysql_link);
$SQL = SELECT * FROM tbl;
$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
echo table border=1 cellpadding=5;
while($resultat =
[EMAIL PROTECTED] wrote:
$mysql_link = mysql_connect(localhost, USER, PASS);
mysql_select_db(DB, $mysql_link);
$SQL = SELECT * FROM tbl;
$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
echo table border=1 cellpadding=5;
while($resultat =
5 matches
Mail list logo