Page 1 of 1

Warning: mysql_query(): supplied argument is not.....

Posted: Thu 14. Apr 2005, 13:03
by plotti
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Dokumente und Einstellungen\plotti\Eigene Dateien\phpwcms1.2DEV\include\inc_front\front.func.inc.php on line 1898


I have implemented a forum on my website, which uses the same database. works fine.

I have implemented phpbbfetchall whicht connects to the forum and can fetch the content everywhere.
And here is the problem.

I got it to work, by making some variables global in their script. But the main problem is that $dbcon is overwritten somehow, by the values of phpbb, thats a pitty that they use the same value.

So I would like to try to reconnect the connection manually in the functions by making a new connection to the database.
i tried this: $dbcon=mysql_connect(blabla...)

worked out fine, the error disappeared but the functions do simply not work anymore. they simply deliver nothing as content...

how is $dbcon defined?

I also tried to make the database connection nonpersistent in the config file of phpwcms but it did not help...

Posted: Thu 14. Apr 2005, 13:20
by plotti
The whole thing is about adding a board to phpwcms
+
Linking the content of the board directly into phpwcms, when clicking on an article to have the board open up....


Perhaps somebody has a better solution than the combination of these:
phpwcms + phpbb + phpbbfetchall

Image

Posted: Wed 20. Apr 2005, 01:04
by plotti
ok i figured it out.

it works fine using the iframe.


PS:
Does anybody know a method to include phpbb or other forums PLUS using the frontendlogin too, from phpwcms, so one login gives you all the power?