troubleshooting Question

problem with function statement?

Avatar of manju70
manju70 asked on
5 Comments1 Solution220 ViewsLast Modified:
hai all,

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.
function wallqry1($gselect1,$ns){  
 Connection($host,$user,$pass,$db1);//calling another function to access db where $host etc are global variables
  case "dbb_flash":
   $select=//some select query
   $result=mysql_query($select) or die("Board cannot found!");
   return $result;
//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.
Thank u


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros