+4  A: 

You shouln't need to connect to the database for every call, one $conn = db_connect(); is enough.

Can we have a look at the db_connect() function.

Lizard
postet the db_connect function, but I don't think thats the problem
ganjan