in my function I call another function to access database the coding is as follows.
include(../../comm.php)//which has global variables only
//the file name is functions.php
//other functions available.
Connection($host,$user,$pass,$db1);//calling another function to access db where $host etc are global variables
$select=//some select query
$result=mysql_query($select) or die("Board cannot found!");
//other php coding
//function Connection is available in the functions.php
but here I cannot still access the database the mysql error is No databse selected.
can anyone chek whether my coding is correct or not!!!
I keep checking my coding cannot locate my errors.