I think I am doing soemthing wrong with my code but i don't know what this could be. I have two databases which are called article and advertiser. In one page I transfer data from the article database and i can print them out with the echo command. And the values are showing up on the screen.
Here is now the problem I am having. I would like to filter advertiser which have the same ad_category value. As the advertiser information is stored in the advertiser database I am doing the following:
$dbcnx=@mysql_connect('localhost','root','password');
mysql_select_db('bonjourparis.advertiser');
$ads = @("select ad from advertiser where ad_category = '$ad_category_new'");
echo($ads);
I took ad_category_new with me from the previous page. But it seems as if it doesn't work once I connected to the new database?
Thank you in advance
andrea