22 lines
427 B
PHP
Raw Normal View History

<?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');
if(isset($_REQUEST['col']))
{
$col = $_REQUEST['col'];
2009-08-11 06:46:49 +00:00
$id = $_REQUEST['id'];
$value = $_REQUEST['value'];
$q = Doctrine_Query::create()
->update('Country')
2009-08-11 06:46:49 +00:00
->set($col, "'$value'")
->where("id = ".$_REQUEST['id']."", $id);
$id = $q->execute();
print $_REQUEST['value'];
}
?>