Page 1 of 1

strange error with mysql_query

Posted: Tue Jan 21, 2003 11:14 am
by wooshie
I wrote a class which has the connect function for connecting to mysql database, it works perfectly, but query called in other method of same class returns empty set, though i ran it in console and it works perfectly.
can anybody pinpoint a problem?

P.S. I hope it won't begin to work when I come to work tomorrow :)

error with mysql_query

Posted: Thu Jan 23, 2003 2:57 am
by cns
In the same class u wrote connection and function for mysqlquery.
Just check whether u called the connection function again in the mysqlquery function.If not call the connect function

Posted: Sat Jan 25, 2003 3:16 am
by wooshie
I debugged my class and discovered that i must call the function for selcting database separately, not from constructor. Strange a bit, but works.