note 13204 deleted from function.mysql-result by irc-html

From: Date: Sun, 14 Apr 2002 00:16:05 +0000
Subject: note 13204 deleted from function.mysql-result by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29246@lists.php.net to get a copy of this message
I didn't add the mysql_select_db function in the previous code. So here is the finished code: $dbcnx = mysql_connect("localhost", "root", ""); if (! @mysql_select_db("dbname") ) { header("Location: error.php"); exit(); } $result = mysql_query("SELECT * from users",$dbcnx); for ($i = 0; $i<mysql_num_fields($result); $i++) echo mysql_field_name($result, $i)." - ".mysql_result($result,0,$i)."&nbsp;//&nbsp;";

« previous php.notes (#29246) next »