close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Database

Thread began 1/12/2011 2:59 am by kleinermitzen420599 | Last modified 1/12/2011 5:39 pm by Jason Byrnes | 1783 views | 10 replies |

kleinermitzen420599

Database

I am confused on how a button can dynamically talk to a database. How do I specify which database the "Add to Cart" button will talk to?

Sign in to reply to this post

Jason ByrnesWebAssist

when the add to cart button is pressed, it will run PHP code that will communicate with the database to return the selected item.

before you can add the add to cart button to your page, you first need to create a connection using Dreamweaver, In the connection you will set which database is used. You then need to create a recordset, this will select which table in the database is used.

When you add the add to cart from recordset behavior, you will need to specify which recordset it will add from.

Sign in to reply to this post

kleinermitzen420599

recordset?

How do I create a recordset? Because the "Look up item ID from recordset" option on the add to cart button is grayed out.

Sign in to reply to this post

Jason ByrnesWebAssist

Creating a record set is a very basic Dreamweaver operation. Go to Insert -> Data Objects -> Recordset.

For details on creating a recordset, click the help button in the Recordset interface.

Sign in to reply to this post

kleinermitzen420599

how?

I have tried setting a recordset and there is no testing server. Is there a way to set the testing server to run online? Because I don't want to use my computer as a local host.

Sign in to reply to this post

Jason ByrnesWebAssist

you do have to have a testing server set up for doing database development in Dreamweaver.

In some cases, it is possible to use your remote web hosting server as a testing server in Dreamweaver, but it really depends on how the host is set up. Some hosts will not allow an outside computer to connect to the mysql server, some require you to register your IP address to be able to make the connection.

though it is _possible_ to use the remote host, I dont recommend it. It would bne much better to set up a local testing server.

Sign in to reply to this post

kleinermitzen420599

test server

What would be an easy testing server program? I have tried xampp. That seems to have a lot of bugs. is there a better program?

Sign in to reply to this post

Jason ByrnesWebAssist

xampp is the simplest testing server i have run across.

I am not sure what you mean when you say it has lots of bugs, i have not run into any issues using xampp.

I have had more issues with trying to configure PHP MySQL with IIS than I have had using xampp.

Sign in to reply to this post

kleinermitzen420599

php

For some reason it isn't running the php scripts. Is there a way to fix this? I turned on Mysql, Apache, and everything else, but php still won't work. Is that a glitch, or did I do something wrong?

Sign in to reply to this post

kleinermitzen420599

also

I'm using a pc with Windows 7. Could there be something wrong because of this?

Sign in to reply to this post
loading

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...