close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

update multiple

Thread began 4/26/2009 6:10 am by office377308 | Last modified 4/30/2009 8:51 am by office377308 | 5353 views | 10 replies


Even DA's "update single behaviour" does not work. DW CS3's basic update record does.

Originally Said By: Ray Borduin
  You would have to debug it.  

I think, I should not. I'd rather suggest, DA should update its extension to provide this feature, BECAUSE:

Even with update single record, it does not work.
BUT Dreamweaver's basic "update record" server behaviour recognizes the two primary fields immediately and does a correct job.:

If my update form looks something like

<form method="POST" name="update_descr">
<input name="language_id" type="hidden" value="<?php echo $_GET['sp']; ?>" />
<input name="category_id" type="hidden" value="<?php echo $_GET['catid']; ?>" />
<input name="language_description" type="text" value="<?php echo $_GET['inhalt']; ?>" />
<input type="submit" name="update" id="update" value="update" />

Dreamweavers built in update behaviour does this:

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);

if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "update_descr")) {
$updateSQL = sprintf("UPDATE categories_description SET categories_name=%s WHERE categories_id=%s AND language_id=%s",
GetSQLValueString($_POST['language_description'], "text"),
GetSQLValueString($_POST['category_id'], "int"),
GetSQLValueString($_POST['language_id'], "int"));

mysql_select_db($database_string, $string);
$Result1 = mysql_query($updateSQL, $string) or die(mysql_error());

// ....

shortly: Dreamweaver does recognize both PRIMARY key fields and correctly updates the record.
But Dreamweaver only understands "update single record behaviour".

My question is, why does DATA ASSIST's not even offer this functionality in its "update single record" not to mention the multiple one?
(I am only offered to select a single id as primary key here.)

Because that was the reason I bought this extension. To go beyond Dreamweavers basic functions.

Again this is the table structure:

CREATE TABLE IF NOT EXISTS `categories_description` (
`categories_id` int(11) NOT NULL default '0',
`language_id` int(11) NOT NULL default '1',
`categories_name` varchar(64) collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`categories_id`,`language_id`),
KEY `idx_categories_name` (`categories_name`)

Please don't ask me to hack DA server behaviour but show me the right way!

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





Ease of use


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