working with 2 databases
Posted: Sat Dec 18, 2010 2:37 pm
B"H
hello everyone! in the project i am working on on some pages i need to take data from one database and sometimes from another so i have some flag variable that switches between them. The problem starts that there are certain places i need to retrieve data from 2 databases to the same page.
i've given link-identifier for every connection:
and every time i use mysql_query i put this link:
in but it tells me:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in...
any help would be very much appriciated. Thanks.
hello everyone! in the project i am working on on some pages i need to take data from one database and sometimes from another so i have some flag variable that switches between them. The problem starts that there are certain places i need to retrieve data from 2 databases to the same page.
i've given link-identifier for every connection:
Code: Select all
$hebdb = mysql_connect("localhost","user","pass",true);Code: Select all
$link = mysql_connect("localhost","user","pass",true);Code: Select all
$rItemsCount = mysql_query($qItemsCount,$hebdb);Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in...
any help would be very much appriciated. Thanks.