PHP Classes

File: add.php

Recommend this page to a friend!
  Classes of Przemek Berezowski   DB Version Manager   add.php   Download  
File: add.php
Role: Example script
Content type: text/plain
Description: Adds a query to list and execute it
Class: DB Version Manager
Update database schema with commands read in files
Author: By
Last change:
Date: 12 years ago
Size: 667 bytes


Class file image Download
 * File for handling adding new queries from GUI

if (!empty(
$_POST['commands'])) {
$oConf = new ConfigManager(CURRENT_PROFILE);
$oDbUpdater = new DbUpdater($oConf);
//@TODO add host path
header('Location: update.php');


    <title>Add new commands</title>
    <form action="add.php" method="post">
    <label>Type new sql commands</label><br />
    <textarea rows="30" cols="100" name="commands"></textarea>
    <br />
    <input type="submit" />