close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Difficulty loading existing data into an Edit Form.

Thread began 9/11/2014 8:05 am by Andrew | Last modified 4/02/2015 2:55 pm by Andrew | 1618 views | 14 replies

Ian

Continuing update problem

Apologies if bad form to re-open an old thread but seems appropriate as it seems an identical problem and suggestions above don;t seem to have solved it for me.

I have a record update form which is more or less identical to the add record form (other than dynamic code and minor detail)
I open the update form in Dreamweaver 5.5 and create a record set.
Server behaviours, +, Web Assist, MySQLi, Data Management, MySQLi Update Record.
Trigger – Button: re_button pressed
Connection – PrioryTerrier
Update Table – registers
Lookup column – re_index (default value)
Column type – Integer (default value)
Lookup value - $_GET[‘re_index’} (default value)
After updating go to – list_register_record.php

Column bindings
re_index –
Value = <?php echo((isset($_POST["re_register"]))?$_POST["re_register"]:"") ?>
Submit as Text, Blank value Db Default

Same (apart from field names) for re_period_from, re_period_to, re_location, and date_recorded
date_update has blank value set to Current Date

Testing the page at this stage allows me to correctly select an existing record but the update form does not show existing data but I can complete the fields and these are recorded, over writing the existing record if something new entered or leaving the initial value if nothing new entered in the field.

I then go back to programming and go through the form, selecting each field in turn and clicking the lightning bolt by Initial value in the Properties Inspector and selecting the matching name from the options shown under Form. This includes the hidden field.

Testing again results in the same as before – edit is possible but it is done “blind” as before as no past data is shown.

Because of replies above, I started again, this time first creating a Record set, then binding fields as appropriate, including binding the Id field to a hidden form element as suggested in the above forum thread.
That just digs a bigger hole for myself!

As you will gather, I don’t really know what I am doing when it comes to PHP and MySQL but know enough to have created bega.org.uk for the local church to save them £5000 for a commercial package which is worth it but we can’t afford.

I have attached the offending file!

Attached Files
update_registers_record.php

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