HI
I'm trying to call b.php3 file into a.php3.
b.php3 file has the database connectivity within the function like:
function connect_dbs($host, $user, $pword, $dbna)
{
$db = mysql_connect("$host", "$user", "$pword");
$Err = mysql_error();
if ($link && mysql_select_db($dbna))
{
$Err .= mysql_error;
return ($link);
}
else
{
echo $Err;
exit;
}
}
function sql_query()
{
----statements----
}
File a.php3 is recognized the b.php3 but it
dosen't read the functions and just ignore the functions. How I can make the functions to read from one php file to another.