Yep, mysql_connect or pconnect. You should never need to use the pconnect twice in a script.
Having more than one connection wont be noticable unless your site gets busy.. but remember when you have more than one, there is always going to be more memory needed than is necessary.
btw; if you need the $title defined before you use it..
e.g.
<?php
echo ($title);
$title = "hello world!";
?>
would return nothing..
whereas
<?php
$title = "hello world";
echo ($title);
?>
would return hello world.
Hope I understood / explained that correctly
Bookmarks