close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert Multiple Records

Thread began 5/12/2015 8:20 am by Mushroom-Graphics | Last modified 5/20/2015 11:03 am by Ray Borduin | 4502 views | 5 replies |

Mushroom-Graphics

Insert Multiple Records

I get the following error after I built a form to insert multiple records into a table:

Parse error: syntax error, unexpected 'else' (T_ELSE), expecting while (T_WHILE) in C:\xampp\htdocs\SpitzWeiss\bayside_beat\Admin\homes_add_images.php on line 123

If I had to guess I think it is because I have a dynamic filled list of addressed in the form. Not sure what to do.

Sign in to reply to this post

Ray BorduinWebAssist

You have some bad code on lines 114-115 related to the dynamically populated select list.

Move the hidden form element on line 115 to lower on the page on line 120.

Then delete line 114 and delete lines 110-112.

Now you can probably use the property inspector to re-populate the select list from the recordset and hopefully dreamweaver will apply the code correctly this time.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mushroom-Graphics

That seemed to work, thank you. Now the trouble I am having is with the file upload and inserting the file name into the table. I make the form then set it up so it will upload the file to the images folder then insert the info into the table. Then I do the repeat section, then populate the addresses using the properties bar. I don't get any errors. The file uploads but the name is not inserted into the table. It also seems to not adhere to the rule that if there is no picture file listed to upload then skip it.

Sign in to reply to this post

Ray BorduinWebAssist

File upload doesn't currently work with multiple rows.

You would have to do some hand coding to repeat the upload and store it as separate variable's to get this to work. This is something we could help with in a premier support ticket.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mushroom-Graphics

Contacted premium support but never heard anything

Sign in to reply to this post

Ray BorduinWebAssist

I just called and scheduled this with you. Sorry for the delay.

Sign in to reply to this post
Did this help? Tips are appreciated...

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