Quote Originally Posted by SirDice
One thing I can think of.. Perhaps there's no entry with that particular $hostid and $hostname. Then there would be nothing to update because the where clause fails.
That was the problem I found. There were no values inserted in the table. I made a mistake in another query, which was supposed to automaticaly insert the necessary values from another table.

I guess the fact that I haven't touched PHP in almost 2 years might have something to do with me being slopy

Thanks everyone for their replies though