2009-05-12 10:00:40 +00:00
|
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* @file
|
|
|
|
|
* Sauvegarde les modifications fa<EFBFBD>tes sur les pays graydon
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
require_once 'dbbootstrap.php';
|
2009-05-14 09:49:31 +00:00
|
|
|
|
setDbConn('graydon');
|
2009-08-19 12:10:34 +00:00
|
|
|
|
if(isset($_REQUEST['col']))
|
|
|
|
|
{
|
2009-05-12 10:00:40 +00:00
|
|
|
|
$col = $_REQUEST['col'];
|
2009-08-11 06:46:49 +00:00
|
|
|
|
$id = $_REQUEST['id'];
|
|
|
|
|
$value = $_REQUEST['value'];
|
2009-08-19 12:10:34 +00:00
|
|
|
|
|
2009-05-12 10:00:40 +00:00
|
|
|
|
$q = Doctrine_Query::create()
|
|
|
|
|
->update('Country')
|
2009-08-11 06:46:49 +00:00
|
|
|
|
->set($col, "'$value'")
|
|
|
|
|
->where("id = ".$_REQUEST['id']."", $id);
|
2009-08-19 12:10:34 +00:00
|
|
|
|
$id = $q->execute();
|
|
|
|
|
print $_REQUEST['value'];
|
2009-05-12 10:00:40 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|