note 16674 added to function.mysql-errno
| From: | sultanzahir at yahoo dot com | Date: | Thu, 08 Nov 2001 17:13:53 +0000 |
| Subject: | note 16674 added to function.mysql-errno | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20609@lists.php.net to get a copy of this message | ||
<?PHP
$db_server = "localhost";
$db_name = "sultan";
$db_user = "sultee";
$db_passwort = "tiger";
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);
mysql_select_db("sultan",$db);
$result = mysql_query("SELECT * FROM self");
if($result) {
echo mysql_num_rows($result);
}
else{
echo "Fehler-Nr. " . mysql_errno()." - " .mysql_error();
}
?>
sultan zahir khan
--
http://www.php.net/manual/en/function.mysql-errno.php
http://master.php.net/manage/user-notes.php?action=edit+16674
http://master.php.net/manage/user-notes.php?action=delete+16674
http://master.php.net/manage/user-notes.php?action=reject+16674