close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

multiple insert issues

Thread began 11/06/2018 4:03 am by georgina_barrett_187762 | Last modified 11/15/2018 5:34 am by georgina_barrett_187762 | 581 views | 5 replies

georgina_barrett_187762

multiple insert issues

I am trying to create a multiple insert using the new server behaviors. I have created an recordset and added the variables to the page (within a form) I have tried using the MySQLi > Repeat Selection Improved to create a repeat region.....
<?php
$wa_repeatfor = -1; // Repeat Selection 2
if (!isset($wa_repeatcount)) $wa_repeatcount = 0;
while (!$confs->atEnd() && $wa_repeatfor != 0) {
$wa_repeatfor--;
$wa_repeatcount++;
if (!$confs->atEnd()) {
?>
<input name="service" type="hidden" id="service" value="<?php echo($confs->getColumnVal("Service")); ?>">
<input name="Uploadconf" type="hidden" id="Uploadconf" value="<?php echo($confs->getColumnVal("UploadConf")); ?>">
<?php echo($confs->getColumnVal("Service")); ?>

,
<?php
if ($wa_repeatfor != 0) $confs->moveNext(); // Repeat Alternate 2
} else {
?>
<?php
} // End Repeat Alternate 2
?>
<?php
}
if (!isset($wa_startindex)) $confs->moveFirst(); // End Repeat Selection 2
?>
And I have tried MySQLi > MySQLi Repeat Region.....
<?php
$wa_startindex = 0;
while(!$confs->atEnd()) {
$wa_startindex = $confs->Index;
?>
<input name="service" type="hidden" id="service" value="<?php echo($confs->getColumnVal("Service")); ?>">
<input name="Uploadconf" type="hidden" id="Uploadconf" value="<?php echo($confs->getColumnVal("UploadConf")); ?>">
<?php echo($confs->getColumnVal("Service")); ?>
<?php
$confs->moveNext();
}
$confs->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
However when I come to adding the Muliple Insert behaviour I get the same pop up saying 'Your page must contain form elements in a repeated region to use this interface'. I have saved each page after adding the repeat region but I just can't get it to work.

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