24 lines
No EOL
612 B
PHP
24 lines
No EOL
612 B
PHP
<?php
|
|
/**
|
|
* This file is a part of MyWebSQL package
|
|
*
|
|
* @file: modules/tableupdate.php
|
|
* @author Samnan ur Rehman
|
|
* @copyright (c) 2008-2014 Samnan ur Rehman
|
|
* @web http://mywebsql.net
|
|
* @license http://mywebsql.net/license
|
|
*/
|
|
|
|
function processRequest(&$db) {
|
|
$tbl = $_REQUEST["name"];
|
|
|
|
$str = $db->getUpdateStatement($tbl);
|
|
|
|
if ($str === false)
|
|
createErrorGrid($db, $db->getLastQuery());
|
|
else {
|
|
print "<div id='results'>".htmlspecialchars($str)."</div>";
|
|
print "<script type=\"text/javascript\" language='javascript'> parent.transferQuery(); </script>\n";
|
|
}
|
|
}
|
|
?>
|