note 102742 added to function.mysql-select-db

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
<?php
$mysql = mysql_connect('localhost','root','');
if(!$mysql) { 
	die ('<font color="#990000">Fehler beim Verbinden mit der Datenbank ! :</font><br> ' .mysql_error()); } else {
		echo '<font color="#669900">Sie haben erfolgreich eine Verbindung hergestellt ! <br></font>'; }
		
$mysqldb = mysql_select_db('lernen',$mysql);
if(!$mysqldb) {
	 die ('<font color="#990000">Die Datenbank kann nicht benutzt werden :</font> ' . mysql_error()); } else {
		echo '<font color="#669900">Die angegebene Datenbank existiert ! <br></font>'; }
?>

Is there a bug in the code?
or is it right?
----
Server IP: 69.147.83.197
Probable Submitter: 87.180.17.213
----
Manual Page -- http://www.php.net/manual/en/function.mysql-select-db.php
Edit        -- https://master.php.net/note/edit/102742
Del: integrated  -- https://master.php.net/note/delete/102742/integrated
Del: useless     -- https://master.php.net/note/delete/102742/useless
Del: bad code    -- https://master.php.net/note/delete/102742/bad+code
Del: spam        -- https://master.php.net/note/delete/102742/spam
Del: non-english -- https://master.php.net/note/delete/102742/non-english
Del: in docs     -- https://master.php.net/note/delete/102742/in+docs
Del: other reasons-- https://master.php.net/note/delete/102742
Reject      -- https://master.php.net/note/reject/102742
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.