Hi.
I'm experiencing an impossible problem, here.
I made a very complex script, which works fine (it's HERE)
It has tons of modules, and obviously a config file which opens the db connection.
But there is one, and only one, module having strange troubles.
$query is just a simple INSERT INTO command. But it does not inserts anything.
I only obtain... nothing. Neither an error from the server!
This is the part of the code i'm talking about, with my testing addons:
if (!mysql_ping($conn)) {
echo "SORRY, WE HAVE PROBLEMS PINGING THE DATABASE. Please retry later";
return;
}
echo " 1-- ".$conn." --<br>";
$result_check=mysql_query($query,$conn);
if (!$result_check) {
echo " 2-- ".$conn." --<br>";
echo "SORRY, WE HAVE PROBLEMS WITH THE DATABASE.<br>Please retry later<br>".mysql_error();
return;
}
And there is a ini_set('error_reporting', E_ALL); command on top of script.
Well: the output i obtain is:
1-- Resource id #10 --
2-- Resource id #10 --
SORRY, WE HAVE PROBLEMS WITH THE DATABASE.
Please retry later
mysql_ping gave no errors.
But one line below, no more? Moreover, mysql_error outputs nothing. And query not executed, of course.
I really don't know what to think, the same connection is used to perform similar things everywhere and it works. Only here it has this problem.
Extra1: there are no mysql_close commands anywhere here.
Extra2: the insert into syntax is correct and works if executed from within phpmyadmin.
Extra3: I'm running php 5.0.4 and MySQL 4.1.14 on Fedora Core 4, fully updated
Any idea/suggestion? I can't see a way out, right now...
Many thanx in advance.