close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Database field name correction

Thread began 6/14/2022 6:46 am by john70964 | Last modified 6/15/2022 1:35 pm by Ray Borduin | 173 views | 4 replies |

john70964

Database field name correction

Hi Ray,
In the attached file boats_insert.php
I noticed that a data field "Condition1" is not being entered (inserted in the table).
and on line 19 the field is named as "Condition" but the field in the table is named "Condition1"

There are a number of Condition entries and I wondered if you could tell me which
Condition(s) need changing to Condition1 in this file.

At the moment the Recordset Name is rsBoatCondition
SELECT * FROM boatcondition
The field is named Condition1

I am not sure which lines 19 2off, 81, 298, 302 need changing from
Condition to Condition1.
Can you please check is I have this correct.

Many thanks
John

Sign in to reply to this post

Ray BorduinWebAssist

I think just line 81 has to be updated to:

$InsertQuery->bindColumn("Condition1", "s", "".($_POST["Condition"]) ."", "WA_DEFAULT");

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

john70964

Hi Ray,

The line 91 at the moment is field that is required,
$InsertQuery->bindColumn("ContactPermission", "z", "".(isset($_POST['ContactPermission'])?$_POST['ContactPermission']:"") ."", "WA_BLANK");

so if I replace that with
$InsertQuery->bindColumn("Condition1", "s", "".($_POST["Condition"]) ."", "WA_DEFAULT");

The 'ContactPermission' field will not exist.

Maybe I am missing something?
Regards

John

Sign in to reply to this post

Ray BorduinWebAssist

Typo... I meant line 81 which is currently:

$InsertQuery->bindColumn("Condition1", "s", "".($rsBoatCondition->getColumnVal("BoatCondition")) ."", "WA_DEFAULT");

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

john70964

Thanks Ray,
I have not yet worked out how line this works but it seems to have corrected the error.
Many thanks
John

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