Yeah newsfeeds.com definately works. I tested it with that.
Well as you can see, the messages are being inserted into the thread table correctly but the threadid is not being returned by the mysql_insertid function. I'm not sure why this is happening. Maybe it's something to do with your mysql setup, I have no idea. But if it happened to you, it will probably happen for others.
I have added another function in there that checks if the threadid is null and if it is, look it up again using the message id. So it will try to use the mysl_insert_id first and if that fails, it will find it itself.
Try that and see what happens. In the meantime I'm going to see what information I can find out about this function at mysql.com.
|