Hi all,
I have an update query,
PHP:
$bstats = "UPDATE tableName SET hits = hits + 1 WHERE brand = $brand"; $bresults = mysql_query($bstats) or die(mysql_error());
So I put this code so that I would be able to see how many people are viewing which brand on our site, however I had too many connection problems after uploading this file, so i'm guessing that too many db connections were happening. First the site was incredibly slow, and then I couldn't connect, I got a too many connections message.
How do I alleviate this problem? Should I do a connection.close() or something?
Any help would be very appreciated.
Thanks
MK