Jump to content

Include Files


Recommended Posts

I'm wanting to create some include files that display some recordset information but I found that when I drop and include file on a page that aready has another recordset on it I get errors. Anyone have any suggestions on how to do this. I thinking it is because it calls the connection file twice or something? Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/3080-include-files/
Share on other sites

The included file has a connection in it, right? Get rid of it. But then, that will cause some errors, because it can't connect to the database on that page; ignore those warning marks. I know it's hard to do, but you have to do it. Dreamweaver seems to have issues with include files-if you try to use their include browser, it will only cause problems. Includes files are things that need to be hard-coded because of the inherent glitchiness of it's PHP support.

Link to comment
https://forums.phpfreaks.com/topic/3080-include-files/#findComment-10283
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.