close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Incorrect Integer value

Thread began 9/01/2020 12:00 pm by Sweens | Last modified 8/24/2022 10:19 am by Ray Borduin | 533 views | 8 replies |

Sweens

Incorrect Integer value

HI Ray

I've read through all the related articles for this error, but they're of no help.

I'm trying to delete an image, its thumbnail and database record, the delete button passes the url:

1-del-carousel-pic.php?tp_id=595

However, the attached page refuses to accept tp_id for some reason, and I get the error message

incorrect INTEGER value:

I've tried everything I can think of, but can't see what's wrong. When I run the query in the database, it returns the correct record.

Cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

Line 14 you have:
$rsTopPics->bindParam("i", "".($rsTopPics->getColumnVal("tp_id")) ."", "-1"); //p1

You are trying to set a value in a recordset from the recordset itself. That doesn't make any sense, and it is probably the source of the error.

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

Sweens

Thanks Ray - I must have rebuilt the recordset about 10 times!

Cheers

Chris

Sign in to reply to this post

Sweens

Hi Ray

I'm having the same issue on a different page (attached) but I can't see anything wrong!

The del-link.php returns 'incorrect integer value' so I click back - but the record has been deleted.

Cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

Your trigger is set to always...

if ("" === "") {

I think you would want something like:

if (isset($_GET["$_GET['DistLinkID'])) {

or even:

if ($rsLink->getColumnVal("DistLinkID")) {

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

Sweens

Hi Ray

Thanks - it was set for 'when page opens' in the behaviour.

I tried your suggestions and each time the redirect back to 1-links.php failed.

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

I think I'll need screen sharing to debug this with you. I'm not sure where it is failing or what is going on without seeing it in context.

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

Sweens

That would be great, thanks.

I'm in Spain at the moment, so early in our day (US time) would be better

Sorry, that should be early morning your time, which will be evening in Spain.

Thanks

Chris

Sign in to reply to this post

Ray BorduinWebAssist

I've reached out via skype... please reply there and we can coordinate a meeting.

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