close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataAssist adding ' character to table name

Thread began 10/24/2009 7:13 am by djellis267466 | Last modified 10/24/2009 9:12 am by anonymous | 823 views | 1 replies |

djellis267466

DataAssist adding ' character to table name

I have been trying to use the DataAssist single record update behaviour to update a field.

However all the attempts / testing failed. On checking the support forum I found the suggestion to using die($WA_Sql); to inspect the query string. This demonstrated that the table name was incorrect - having extra ' characters before and after the name.

On checking the code I found:-

$WA_connection = $dbconnection;
$WA_table = "`admin`";
$WA_redirectURL = "admin.php";
$WA_keepQueryString = false;

On changing "`admin`" to "admin" then everything worked OK.

The behaviour of adding the extra ' is consistent. Within Dreamweaver in the Server Behaviours section one can also see the extra 's - as in Update Record ('admin')

Having to manually edit the code is a real time waster - can you think what DataAssist is doing this ?

Many thanks,
Dave Ellis

Sign in to reply to this post

anonymous

Dave,

It may because there are certain key words that are used as commands, descriptors, and otherwise - in either mysql or php.

And if it is a reserved word of sorts, the typical practice is that using quotes allows you to continue using the reserved word as you desire provided there is an extra quote string.

For example, the mysql documentation on this can be found here: reserved-words.html

You'll see why - in the same reason - if you name your column "desc" for description, when your select statement is made, it will do the same thing making it look like 'desc' - to denote that you are using a reserved word for your own descriptor.

Hope some of that helps,

Brian

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