 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
riccco
Joined: 18 Nov 2007 Posts: 3
|
Posted: Mon Nov 19, 2007 10:38 pm Post subject: MDB2 - pb with autoexecute |
|
|
Hello again,
I have this snippet that don't work :
| Code: |
$itm = array (
'pk_fetched' =>"",
'titre' => "test",
'description' => "zest",
'link' => "zest",
'date' => "2007-11-19T10:30:29Z",
'lat' => "38.8969114742295",
'long' => "-77.0316696166992"
);
$table_name = 'fetched';
$mdb2->loadModule('Extended');
ricco
$affectedRows = $mdb2->extended->autoExecute($table_name, $itm, MDB2_AUTOQUERY_INSERT, null);
if (PEAR::isError($affectedRows)) {
die($affectedRows->getMessage() . ', ' . $affectedRows->getDebugInfo());
}
|
But mysql answer is : 'INSERT INTO fetched (pk_fetched, titre, description, link, date, lat, long) VALUES (?, ?, ?, ?, ?, ?, ?)'
Somebody have an idea of the problem ?
thanks by advance |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Tue Nov 20, 2007 10:50 am Post subject: |
|
|
Does the die() call in the error check output something? If yes, what is the output?
It might also help to add the following lines at the beginning of your code to improve the error reporting of PHP for debugging:
| Code: |
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'PEAR.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|