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