RE: [PHP-DB] Listing select * from table; on PHP

From: Date: Wed, 09 Jan 2002 16:59:46 +0000
Subject: RE: [PHP-DB] Listing select * from table; on PHP
Groups: php.db 
Request: Send a blank email to php-db+get-15568@lists.php.net to get a copy of this message
<?php mysql_connect ('dbhost','user','pass'); mysql_select_db ('db'); $ircname2 = htmlspecialchars($ircname); $result = mysql_query ("select ircname from members"); while( $row = mysql_fetch_array($result) ) { print $row['ircname']."<BR>"; } ?> Don't forget all other HTML tags you need to pack around this -----Original Message----- From: louie miranda [mailto:louie@chikka.com] Sent: Wednesday, January 09, 2002 6:53 AM To: php-db@lists.php.net Subject: [PHP-DB] Listing select * from table; on PHP <?php mysql_connect ('dbhost','user','pass'); mysql_select_db ('db'); $ircname2 = htmlspecialchars($ircname); mysql_query ("select ircname from members"); print ($ircname2); ?> ---------- Hi, i have tried this php script to view my table db, but when i browse it over the net i couldn't see anything just plain blank page. Hm, Can u help me make this show tables over on php and post it over. thanks, louie... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#15568) next »