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

Updating table created from import

Thread began 9/09/2009 3:52 pm by bjgarner241692 | Last modified 9/10/2009 11:43 am by Jason Byrnes | 771 views | 2 replies |

bjgarner241692

Updating table created from import

I have one table on one of my PHP MySQL site which I created by importing a .csv.

I then created Admin pages to manage the content of the db but they will not work.
It is just this table. I cannot insert, update or delete.

When I try to do an update, I do not get an error, it submits the page and shows the result, but the record is unchanged.

I do not believe it is the Data Assist pages, but rather something about the table. I can update the table using PHP MySQ?LAdmin so I'm stumped.

Is there something I can check in MySQL that would be blocking the update?

Sign in to reply to this post

anonymous

You may have checked this already but double click the "Update Record" server behavior and then hit next on the first dialogue screen just to ensure that your columns have a binding to give an updated value.

If everything looks good there... the next step will be to dump the post values on the screen to ensure that you are creating values.

Best regards,

Brian

Sign in to reply to this post

Jason ByrnesWebAssist

Just to make sure it is not a problem in the update record server behavior, look for the following code:

php:
$WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";

$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());




and change it to:

php:
$WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";

die($WA_Sql);
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());




This will write the UPDATE SQL To the screen try running that SQL statemnt directly on the database using PHPMyAdmin or another tool.

If that works, then check that the username being used in the Dreamweaver Database connection has edit access to the database.

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