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

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
plotti
Posts: 34
Joined: Thu 7. Oct 2004, 14:40

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

Post 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...
plotti
Posts: 34
Joined: Thu 7. Oct 2004, 14:40

Post 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
plotti
Posts: 34
Joined: Thu 7. Oct 2004, 14:40

Post 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?
Post Reply