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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Page will not load after adding recordset

Thread began 9/21/2011 7:13 am by Jon Cunningham | Last modified 9/21/2011 1:30 pm by Jason Byrnes | 1126 views | 8 replies |

Jon CunninghamBeta Tester

Page will not load after adding recordset

Hi Guys,

I have a strange mystery going on here.

If I add a record set to my page even a simple one such as :

SELECT *
FROM settings

and try to view it on my live server i get the following page error

Table 'web81-ahc200db.settings' doesn't exist

if i remove the record set the page loads fine..

The database and table both exist

Any pointers in the right direction would be appreciated.

FYI I have added the page with simple record set and db that i am using.

Kind regards

Jonathon

Attached Files
files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the SQL dump you provided seams to be from your local database.

if you are getting this error message when previewing the page on your remote live server, you need to make sure the settings table exists on the remote live MySQl Database.

Sign in to reply to this post

Jon CunninghamBeta Tester

If I remove the following sql statement

SELECT Vehicle.*, manufacturer.VehicleManufacturerName
FROM Vehicle INNER JOIN manufacturer ON Vehicle.VehicleManufacturerID = manufacturer.VehicleManufacturerID

"this outputs the Vehicle manufacturer Name instead of the id"

The page loads without any errors on my live server.

I have two sql statements utilising this sql statement

The one above and this one

SELECT Vehicle.*, manufacturer.VehicleManufacturerName
FROM Vehicle INNER JOIN manufacturer ON Vehicle.VehicleManufacturerID = manufacturer.VehicleManufacturerID
WHERE vehicle.VehicleCotw = 1
ORDER BY vehicle.VehicletUpdateDate ASC LIMIT 1

Any help would be appreciated.

I have added both files in a zip along with a sql dump of my live server.

Jonathon

Attached Files
ahcFiles.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I'm sorry i dont follow at all what you are asking, can you please clarify what it is you are asking in your previous reply.

Sign in to reply to this post

Jon CunninghamBeta Tester

Sure no problem.

I have created two record sets using the following SQl statements on two different pages respectfully.

rsCaroftheweek

SELECT Vehicle.*, manufacturer.VehicleManufacturerName
FROM Vehicle INNER JOIN manufacturer ON Vehicle.VehicleManufacturerID = manufacturer.VehicleManufacturerID
WHERE vehicle.VehicleCotw = 1
ORDER BY vehicle.VehicletUpdateDate ASC LIMIT 1

and WADAvehicle

SELECT Vehicle.*, manufacturer.VehicleManufacturerName
FROM Vehicle INNER JOIN manufacturer ON Vehicle.VehicleManufacturerID = manufacturer.VehicleManufacturerID

I have no issues with the above sql statements on either pages when running on xampp.

However, when these pages are uploaded to my live server and view my pages i get the following error and the page does not load.

Table 'web81-ahc200db.settings' doesn't exist.

By removing the following sql statement code from both record sets the pages load.

SELECT Vehicle.*, manufacturer.VehicleManufacturerName
FROM Vehicle INNER JOIN manufacturer ON Vehicle.VehicleManufacturerID = manufacturer.VehicleManufacturerID

I am at a loss why on my testing server xammp it work fine but not on my live server. hmm

Kind regards

Jonaathon

Sign in to reply to this post

Jon CunninghamBeta Tester

further:

Table 'web81-ahc200db.vehicle' doesn't exist

Sorry missed typed on previous post

Sign in to reply to this post

Jason ByrnesWebAssist

this means that the tables do not exist in the live MySQL database on your remote server.

you will need to take the SQL File you sent to me, and run that SQL Script on the database on the remote MySQL Server to create the tables.


Wait you say:

  Table 'web81-ahc200db.vehicle' doesn't exist

Sorry missed typed on previous post  



is it
Table 'web81-ahc200db.settings' doesn't exist

or is it:
Table 'web81-ahc200db.vehicle' doesn't exist

I'm getting confused.

if it is:
Table 'web81-ahc200db.vehicle' doesn't exist


then it could be a case sensitivity issue.

in the database dump, the table is named "vehicle" in your query you are using "Vehicle"

try changing the case:
SELECT vehicle.*......

instead of:
SELECT Vehicle.*......

Sign in to reply to this post

Jon CunninghamBeta Tester

Jason you never fail to amaze me.

There is a lesson I will not forget.

Worked a treat.

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

So it was case sensitivity then?


Glad to hear it's working.

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