'mysql_select_db' $branch="?"
"connection.php"
<?
$db_name="diary";
$connection=mysql_connect("localhost","user","user " or die("Can't connect");
$db=mysql_select_db($db_name,$connection) or die("Can't select DB");
$branch="personal"; //Table name
How if possible can i connect to a different table, i am currently using the same form in seperate directories with accompanying "connection" files.
I would like to be able to just edit the connection file, cos i use the same form field for different tables in the same database, and therefore will not need multiples of the same files on the server.
$branch="some_other_table";
I was thinking of something like using fopen() or is there some really easy way i just haven't thought of.
|