Topic: how to get imported punbb database connected/seen by new host/server
I've successfully imported my database onto new server but don't know how to get the database connected and seen as a webaddress. Any help greatly appreciated.
For instance, tyring to find out how to connect the database now with new host? My server provides this:
"MySQL Server Database Connection Settings
Description:
This example describes using PHP to connect to a MySQL Database on a Linux hosting account.
<?php
//Connect To Database
$hostname="your_host_name_address";
$username="your_username";
$password="your_password";
$dbname="you_database_name";
$usertable="your_tablename";
$yourfield = "your_field";
mysql_connect($hostname,$username, $password) OR DIE ("Unable to connect to database! Please try again later.");
mysql_select_db($dbname);
$query = "SELECT * FROM $usertable";
$result = mysql_query($query);
if($result) {
while($row = mysql_fetch_array($result)){
$name = $row["$yourfield"];
echo "Name: ".$name;
}
}
?>
----------------
I can figure out most info to add in, but what would "your_tablename" and "your_field" be?