note 47524 added to ref.mysql

From: Date: Fri, 19 Nov 2004 01:03:27 +0000
Subject: note 47524 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-80731@lists.php.net to get a copy of this message
I am a programmer and I am dabbling in PHP. I was wondering if anyone could come up with code that will create the db tables if they don't exist. Most apps I've seen have a separate INSTALL.PHP routine that creates the db tables. I picture: Connnect test table(s) existence, if not exist, run create routines for each table that doesn't exist......then continue with whatever the programs does. ---- Manual Page -- http://www.php.net/manual/en/ref.mysql.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47524 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47524&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47524&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47524&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47524&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47524&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47524&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47524&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80731) next »