Using external DB

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Mike1
Posts: 70
Joined: Thu 10. Jun 2004, 13:39

Using external DB

Post by Mike1 »

So the idea is - what is the best way to integrate presenting some external DB like a table inside a phpwcms content? I mean - I have some table like

cutomer_ID, mail, etc

and I want to show it as a Table.

some ideas ? (thinking without 3rd party script...)

TIA!
Pauli
Posts: 92
Joined: Mon 30. Aug 2004, 11:53

Post by Pauli »

bump

same here
Please?
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Ok, not an expert here...
but here goes

(1) I-FRAME option - all scripts would go within I-frame tags
(2) {PHP:query_results.php}
(3) Use XML-driven menu and create page outside 'Wcms proper'

Option (1)
if you want to send interactive queries

Option (2)
is very reliable, if you want only results from an external DB
{PHP:query_results.php} can be called within content area

Option (3)
the menu exists 'outside' Wcms proper (no page rendering required).....
http://www.sportotago.co.nz/find_sport.php (example only)
this is a 'static' page with 'independent XML-driven Phpwcms menu returning dynamic category results yet supporting full interactivity with your DB.

I would not be surprised that there are others on the boards that have devised newer methods, especially with the release of 1.2.1, that supports init and render options.

In fact would be most interested if others have implemnted init/render in this regard....

Hope this helps,
John
Post Reply