tsilenzio Posted July 2, 2007 Share Posted July 2, 2007 Don't laugh but im new to php (not programming) I read somewhere that if u use mysql_connect (instead of mysql_pconnect) that u have to use it in every script. I was just wonderting if a script is from on <?php to ?> or if a script is from the top of the file to the end. (basically if it doesn't end the connecting after it encouters its first set of a ?> tag. Thanx in advance! Link to comment https://forums.phpfreaks.com/topic/58023-mysql_connect/ Share on other sites More sharing options...
pocobueno1388 Posted July 2, 2007 Share Posted July 2, 2007 I've honestly never seen mysql_pconnect() used in a script before. Usually you have a file called config.php and you connect to the database in that file. Then you just include that file at the top of every page that requires a db connection. Link to comment https://forums.phpfreaks.com/topic/58023-mysql_connect/#findComment-287608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.