note 42063 added to function.mysql-create-db

From: Date: Sat, 01 May 2004 13:41:05 +0000
Subject: note 42063 added to function.mysql-create-db
Groups: php.notes 
Request: Send a blank email to php-notes+get-69075@lists.php.net to get a copy of this message
I don't think there is anything like "if database exists" or whatever... so I had to do this: if(! $db = mysql_select_db($database,$link)){ mysql_create_db($database,$link); $db = mysql_select_db($database,$link); } ---- Manual Page -- http://www.php.net/manual/en/function.mysql-create-db.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42063 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42063&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42063&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69075) next »