Jump to content


Photo

PHP and Frames in Dreamweaver


  • Please log in to reply
1 reply to this topic

#1 joelg

joelg
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 18 June 2006 - 08:48 PM

Dear all PHP freaks,

I've search the whole archive by now and havn't found answer to my problem, so I hope you can help me.
I'm about to make my own website with a Content Management System and am now able to connect to and read/write to a MySQL database via dreamweaver.

No problem until I turn my pages into frames. For example: I have a site where I wan't to ad text from my database. Everything works fine as you can see (ok, the text is offcurse just bullocks, but that's no problem, hihi): [a href=\"http://www.joel.biz/test/Finn/Index_ny.php\" target=\"_blank\"]http://www.joel.biz/test/Finn/Index_ny.php[/a]

But then I make the Index_ny.php as a part of my lower frame in a frameset and the usual: {Recordset1.Overskrift_nyhed}{Recordset1.Brødtekst_nyhed}

Continued...

But then I make the Index_ny.php as a part of my lower frame in a frameset and the usual: "Recordset1.Overskrift_nyhed" "Recordset1.Brødtekst_nyhed" turns into small "php"-shields/icons with the result that my connection/getting data from my database dosn't work anymore?!!! What is it that I do wrong?

Hope anyone can help me.

Thanx alot

Best regards

Joel



By the way. Using Dreamweaver 8 on a mac os X 10.3.9.

#2 holly30

holly30
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 June 2006 - 09:36 AM

Hi,

i think you've forgotten to 'require' the db-connection in your new page.
The line you have too add will be something like:
<?php require_once('Connections/NameOfYourConnection.php'); ?>

That should do it!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users