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?
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?
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.
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?
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.
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
What is your form action? Can you send a copy of the page?
<form enctype="multipart/form-data" class="m-auto" name="cgimodify" style="max-width:600px" method="post" action="modify-cgi.php">
Change it to action="" and the url parameter will automatically forward in the submit.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.