close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP, bindings, and includes

Thread began 2/06/2014 1:23 pm by Patrice | Last modified 2/06/2014 2:33 pm by Patrice | 212 views | 4 replies |

Patrice

PHP, bindings, and includes

This isn't a WA question per se, but perhaps a php/mysql guru can shed some light on this subject.

I have a php page using bindings to display mysql data. Works fine.
I want to use that php page as an include, but it fails.

Is it possible to do this or does each page have to have the code for the mysql query? Any tricks to make this happen so I don't have to it up on each page in the site?

Thanks to anyone who has time to answer.

Sign in to reply to this post

Jason ByrnesWebAssist

Use framework builder to add the page as a plugin to another page.


create the page that has the recordset and the code to display the data from the recordset, then you can add it to another page using framework builder plugins.

Sign in to reply to this post

Patrice

Framework is just another way to do php includes right? I haven't played with frameworks since includes have always been workable. Is there anything in frameworks that is different than just inserted an include?

I'll take a look at it.

Thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

framework builder is includes plus.

it allows you to create complete pieces of functionality and add them to pages in your site.

"Is there anything in frameworks that is different than just inserted an include?"

yes, there is a lot that is different.


the problem with includes is that all the code from the included file gets added at the spot of the include.

with plugins, it looks at the filer and creates code blocks for the code above the doctype, in the head section and in the body.

when add to the pages, the code block for above the doctype gets added above the doctype, the head code block gets added to the head section, the body code block gets added to the body.

Sign in to reply to this post

Patrice

Thanks Jason. I'll give it a whirl.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...