MySQL and PHP question about calling a function.?

Kitty Juice

New member
I have a mySQL database connection file, called conn_guitars.php and all that is in it is my user name and password (as well as the host)
(the following content was generated by dreamweaver, I'm still learning)
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_allguitars = "host.org";
$database_allguitars = "database";
$username_allguitars = "username";
$password_allguitars = "password";
$allguitars = mysql_pconnect($hostname_allguitars, $username_allguitars, $password_allguitars) or trigger_error(mysql_error(),E_USER_ERROR);
?>
My actual question is, can I create a php page that calls on this page and says what the $hostname_allguitars, $database_allguitars $username_allguitars $password_allguitars is?
For instance, I want to create a page that does this..
(I made up some syntax, I'm looking for the real syntax)
<?php
use_file =['conn_guitars.php'];
echo "$username_allguitars";
?>
On the page it would show:

username

Thanks!
ANY help is GREATLY appreciated!
 
Back
Top