Hey all,
I am troubleshooting a very odd problem, because it only occurs once in 250 times, and I am not able to pinpoint the problem. I have a PHP script that automatically gives a user a session, creates a table for that user and fills it with a line of default values. I do that like:
mysql_connect("$host","$user","$pass");
mysql_select_db($db_name) or die ('Unable to connect to the database!'.mysql_error());
mysql_query ("CREATE TABLE $session (
id INT NOT NULL AUTO_INCREMENT ,
starttime TEXT NOT NULL ,
ctime TEXT NOT NULL ,
action TEXT NOT NULL ,
PRIMARY KEY ( id )
)") or die ('error during the creation of the session-item'.mysql_error());
mysql_query("INSERT INTO $session VALUES ('','$starttime','$thetime','$action')");
Afterwards the php-script tell a flash-movie that the table is created and the movie can go on. As I explained once in a while the movie won't go on, and when I check, I see that the table was created, but the first line wasn't filled, and I assume because of an error the script didn't pass variables to flash, but an error message.
Does anyone have a clue???