If I have multiple php scripts in one page, and they all get info from my DB, do I have to connect to the DB for every script?, or can I use one connection in the first script and make my queries in the remaining scripts?
I appreciate any help.
Moderators: macek, egami, gesf

<?php
$db = mysql_connect($host,$user,$pass);
//first script
mysql_query($query,$db);
//second script
mysql_query($query, $db);
?>
Users browsing this forum: No registered users and 1 guest