Re: create if table not exists

From: Date: Mon, 17 May 2004 05:24:06 +0000
Subject: Re: create if table not exists
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186379@lists.php.net to get a copy of this message
In article <40A849FB.581BC924@CollegeSherbrooke.qc.ca>, John Taylor-Johnston wrote: > How can I check if a table exists in a mysql db. $query = 'IF NOT EXISTS table CREATE TABLE table (......)'; mysql_query($query); -- Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>

« previous php.general (#186379) next »