Mysql_connect
#1

So...
Im using BlueG Mysql R39-3.

Im using 2 different databases, at different hosts.
But im getting the following error(s)

[13:25:22] [ERROR] mysql_errno - invalid connection handle (id: 0)
[13:25:22] [ERROR] mysql_errno - invalid connection handle (id: 0)

It shouldn't have given me the errors.
But i think it is because the seccond connection is different from the other one.

Database = Mysql_connect instead of
Mysql_connect.

However i can not change the database = mysql_connect in order for the rest of my code to function.
Reply
#2

Code:
mysql = mysql_connect(plrhost, plruser, plrdb, plrpass);
Reply
#3

Rofl, Thanks yes, that was what i was looking for however, if i would like to add more connections, could i use mysql = mysql_connect multiple times, or is it an unique identifier?
Reply
#4

Quote:
Originally Posted by yvoms
View Post
Rofl, Thanks yes, that was what i was looking for however, if i would like to add more connections, could i use mysql = mysql_connect multiple times, or is it an unique identifier?
Well I never tried that so I got no idea about that. :/
Reply
#5

Ah thanks anyways, seems to have worked. + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)