Re: Is there something similar to this out there?
| From: | Chris | Date: | Mon, 14 May 2007 02:00:31 +0000 |
| Subject: | Re: Is there something similar to this out there? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43586@lists.php.net to get a copy of this message | ||
rieh25 wrote:
I'm working on a script to create back-up's of a database. It's not complete because it only generates the "insert into" commands, it doesn't generate the "create database" or "create table" ones, but I wondered if there is another way to create a back-up's of a database that can only be accessed through the web.$qry = "SHOW CREATE TABLE " . $tablename; $result = mysql_query($qry); $create_table = mysql_result($result, 0, 1) . ";\n"; No idea about create database but something similar should work. -- Postgresql & php tutorials http://www.designmagick.com/