close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Show a success notification on database update

Thread began 3/08/2022 9:56 am by Paul | Last modified 3/09/2022 10:30 am by Ray Borduin | 400 views | 7 replies |

PaulBeta Tester

Show a success notification on database update

I have a DA update page which reloads after the update button pressed.

What WA tool is best to hide a success notification until the record is updated, when it is enabled visible?

Sign in to reply to this post

Ray BorduinWebAssist

I'd add a url parameter to the page when a successful update takes place and use that to show the message on update.

You can use the Server Behavior->WebAssist->Utilities->Show Region Utility to only display when the url parameter is present.

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

PaulBeta Tester

Thanks, pursued this route

I'm using a url param idx to pass the record id to the update page
Now on my update page, the recordset has errored on the line marked in red

<?php
$rsCGIUpdate = new WA_MySQLi_RS("rsCGIUpdate",$cgiDB,0);
$rsCGIUpdate->setQuery("SELECT * FROM cgi-mnc-data WHERE idx = ?");
$rsCGIUpdate->bindParam("i", "".$_GET['idx'] ."", "-1"); //colname
$rsCGIUpdate->execute();
?>.

What am i missing here?

Sign in to reply to this post

Ray BorduinWebAssist

Is the idx value in the url properly? If you add:
<?php
ini_set("display_errors",1);
?>

To the top of the page, it might show you the actual error.

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

PaulBeta Tester

Am puzzled, as idx is parsing the value ok and it bringing back all the mapped record data

When i go to save, im getting an Undefined index: idx

For some reason when i update it doesnt like idx as its reporting undefined

Sign in to reply to this post

Ray BorduinWebAssist

What is your form action? Can you send a copy of the page?

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

PaulBeta Tester

<form enctype="multipart/form-data" class="m-auto" name="cgimodify" style="max-width:600px" method="post" action="modify-cgi.php">

Attached Files
cgi_update_page.txt
Sign in to reply to this post

Ray BorduinWebAssist

Change it to action="" and the url parameter will automatically forward in the submit.

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