close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Mysqli Database Update Shows Blank Screen

Thread began 9/08/2019 5:59 pm by BillHobbs | Last modified 9/16/2019 1:52 pm by Ray Borduin | 115 views | 30 replies |

BillHobbs

Mysqli Database Update Shows Blank Screen

I'm trying to update the form and then return to the same page to view the changes. I get a white screen when I set the pageID to the hidden form element that has the recordset pageID. If is hard code the pageId it works but If I try to set parameter it just gives me a white screen. I've attached the file.
Thanks

Attached Files
manage_pages.php
Sign in to reply to this post

Ray BorduinWebAssist

Line 47 has:

php:
$UpdateGoTo = "manage_pages.php?pageID=\" . echo((isset($_POST[\"RecordID\"]))?$_POST[\"RecordID\"]:\"\") . \"";



it should be:

php:
$UpdateGoTo = "manage_pages.php?pageID=". ((isset($_POST["RecordID"]))?$_POST["RecordID"]:"")  ."";
Sign in to reply to this post

BillHobbs

Thanks Ray that fixed it.

That code was created by the mysqli update form server behavior. Any idea why it would code it wrong? Is there a setting I need to change?

Sign in to reply to this post

Ray BorduinWebAssist

Have you installed the latest version of the extension lately? I'd do that to make sure you have the most updated version.

What did you enter into the redirect after update field in the UI? That could be the problem as well.

Sign in to reply to this post

BillHobbs

I bought this last week and just started using it. It looks like it is Version 1.0.8 June 14, 2019.

I just did it the way I've always done it and selected the php page that had the form on it, then added the parameters where the ID = the hidden form element with the value set using the page recordset ID.

I put your code in and it works, but if I try to make any changes to the update server behavior I get an error now that says the server-side values is improperly coded. I've attached a screen shot.

If I do update the behavior it defaults back to the code on line 47 that wasn't working.

Sign in to reply to this post

Ray BorduinWebAssist

I updated the code in the previous post. Try using that and I think it will work. What version of Dreamweaver are you using?

Sign in to reply to this post

BillHobbs

I'm using Dreamweaver CC 2018 18.0 10136 Build

I don't get the error message when I open the Update Server Behavior, but if I try to set up the go to page with parameters it gets reverted back to:
$UpdateGoTo = "manage_pages.php?pageID=\" . echo((isset($_POST[\"RecordID\"]))?$_POST[\"RecordID\"]:\"\") . \""; and deletes your code.

I assume this is going to happen every time I create a form and need it to go back to the same page with the same parameters. Which I do a lot of.

Sign in to reply to this post

Ray BorduinWebAssist

Please reinstall the extension. I just uploaded a new version that should resolve this issue.

Sign in to reply to this post

BillHobbs

On the website it still looks like the version I downloaded. MySQLi Server Behaviors Version 1.0.8 June 14, 2019.
I installed it, but it didn't make any difference. It's still making the same code that errors out.

Sign in to reply to this post

Ray BorduinWebAssist

Please post your phone number and I'll do screen sharing to see why this happens.

Sign in to reply to this post
loading

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