22 lines
427 B
PHP
22 lines
427 B
PHP
<?php
|
|
/**
|
|
* @file
|
|
* Sauvegarde les modifications faîtes sur les pays graydon
|
|
*
|
|
*/
|
|
require_once 'dbbootstrap.php';
|
|
setDbConn('graydon');
|
|
if(isset($_REQUEST['col']))
|
|
{
|
|
$col = $_REQUEST['col'];
|
|
$id = $_REQUEST['id'];
|
|
$value = $_REQUEST['value'];
|
|
|
|
$q = Doctrine_Query::create()
|
|
->update('Country')
|
|
->set($col, "'$value'")
|
|
->where("id = ".$_REQUEST['id']."", $id);
|
|
$id = $q->execute();
|
|
print $_REQUEST['value'];
|
|
}
|
|
?>
|