close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Generated code producing errors - isset(1)

Thread began 1/07/2010 1:02 pm by david.barrack304604 | Last modified 1/07/2010 2:30 pm by david.barrack304604 | 1572 views | 4 replies |

david.barrack304604

Generated code producing errors - isset(1)

I am using the directions to perform multiple updates from a repeating region. I am getting the following error:


This looks like it's in reference to the code below. I thought an isset requires a variable. Please see below:

$column_rs_person_summary = "-1";
if (isset(1)) {
$column_rs_person_summary = (get_magic_quotes_gpc()) ? 1 : addslashes(1);

What to do??? The php code is attached.

Attached Files
PRV_person_summary.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

The problem is in the way you are creating the recordsets. you do not need to create a parameter in the recordset if the value is going to be static. Only crate a parameter if the value is coming from a variable.

For a static value, just enter the value in the where clause:
WHERE PRV_reservation_ID = 1


rather than using a parameter.

Sign in to reply to this post

david.barrack304604

Generated code

But the recordset does take a variable - it uses a session variable to form a where clause. So I'm still stuck.

Sign in to reply to this post

Jason ByrnesWebAssist

It is not using a variable the way you have created it.


the way you have created the parameters is to use the value "1" as the runtime value.


set the runtime value for the parameter to:
$_SESSION['SessionName']

Sign in to reply to this post

david.barrack304604

multi-record update

Thanks, that did do it. I made the change but didn't upload it. The updating worked! For whatever reason the repeat region doesn't display anything and I'm not sure it is supposed to. I defined the behavior to trigger on page load and then direct to another page so it's basically a helper page now.

Sign in to reply to this post

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