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

Update Problem

Thread began 1/25/2022 9:44 am by Brunco53 | Last modified 1/25/2022 10:21 am by Brunco53 | 22 views | 1 replies

Brunco53

Update Problem

Hello
I have problems with the update function.

I do NOT want to update via a form, but change a record after a database query. After a calculation, the changed record should be written back to the database.
So far I have not managed to change the record.

//What do I have to select here in WebAssist?

I could not find anything in the help functions.
Other options are displayed.

I have sent you my update code.

Can get some help me further?

<?php
$status=1;

$freelog= 5 ;
$freelog=$freelog -1;

if ($freelog == 0) {
$status = 0;
}
$freelogins = $freelog;

?>

<?php
if (false) {
//What do I have to choose here in WebAssist?
$UpdateQuery = new WA_MySQLi_Query($db_conn);
$UpdateQuery->Action = "update";
$UpdateQuery->Table = "voodoo_kunden";
$UpdateQuery->bindColumn("id_kund", "i", "", "WA_DEFAULT");
$UpdateQuery->bindColumn("last_enter", "t", "", "WA_DEFAULT");
$UpdateQuery->bindColumn("free_logins", "i", "".($rs_vooKund->getColumnVal("free_logins")) ."", "WA_DEFAULT");
$UpdateQuery->bindColumn("total_logins", "i", "".($rs_vooKund->getColumnVal("total_logins")) ."", "WA_DEFAULT");
$UpdateQuery->bindColumn("status", "i", "", "WA_DEFAULT");
////What do I have to choose here in WebAssist?
$UpdateQuery->addFilter("id_kund", "=", "i", "".($_GET['id_kund']) ."");
$UpdateQuery->execute();
$UpdateGoTo = "../ListeBeschwoerung.php";
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):"";
$UpdateQuery->redirect($UpdateGoTo);
}
?>

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