close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Admin 'update' page URL parameter doesn't show; mysql syntax error

Thread began 11/08/2018 1:11 pm by tmcbinc99963 | Last modified 6/12/2019 1:47 pm by Ray Borduin | 2792 views | 10 replies |

tmcbinc99963

Admin 'update' page URL parameter doesn't show; mysql syntax error

Admin 'update' page displays differently when accessed from 'search results > update' and 'search results > detail > update'.

When accessed from 'search results > update', the data displays as it should, with correct URL parameter.

When accessed from 'search results > detail > update', there is no URL parameter and the following error message displays:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 10' at line 1

Haven't been able to find any syntax errors, and various 'get' and 'post' iterations never display the URL parameter.

Looks to me like the error should be in the detail page form, since the update page displays incorrectly only when accessed from that page. However, adjustments to the form method and/or 'update' button return the same errors.

Do both of these issues result from the same problem, or are there multiple problems here?

UPDATE: Changing the $_GET in the mysql query code at top of 'update' page eliminated the syntax error, but of course none of the data displays when the 'update' page is accessed from either the 'results' page or the 'detail' page.

Files attached. Live view details in private message.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you may have sent me the wrong versions of these pages. These are MySQL version and I think your current site is updated to MySQLi. If you send me the correct pages then I can see what might need to be updated.

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

tmcbinc99963

The site is still MySQL; hasn't been upgraded.

Sign in to reply to this post

Ray BorduinWebAssist

You could try updating the details page <td> where the update button appears to:

php:
<td><input type="button" value="Update" class="formButton Sharp" id="Update" name="Update" onclick="document.location.href='prod_update.php?ID=<?php echo($row_WADAprod['ID']); ?>';" /></td>



That might solve the issue.... if not, just send me ftp access and a url to reproduce and I can fully debug and figure out what is going wrong.

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

tmcbinc99963

See private message for access.

Sign in to reply to this post

Ray BorduinWebAssist

I got the update page working. There were several issues including using a form GET instead of POST, mismatched form element names, fields bound to recordsets when they should be set to form values, and others.

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

tmcbinc99963

The Update page still has no data when accessed from the Detail page (with no URL).

Sign in to reply to this post

Ray BorduinWebAssist

Please post steps to reproduce the issue and I'll debug it. What page should I go to, what should I click, etc...

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

tmcbinc99963

See private message

Sign in to reply to this post

Ray BorduinWebAssist

You had a repeat region in the middle of the prod_detail.php page on the WADAprod recordset that was looping and didn't have any content by the time it got to the bottom of the page. I removed the loop and it appears to work properly now.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...