I was wondering if anyone knew how mysql_connect() acted within an if/else statement. Does it open the connection only if the if/else condition is met, or does it open a connection immediately, and just not query unless the if/else condition is met?
Is it any different if making a persistent connection? [mysql_pconnect()]
I ask because I’m trying to limit my connections to a database, and I hope by placing them within if/else statements i’ll be able to do so. (Could this effect the conueries in a positive manner?)