Project

General

Profile

Actions

Support #1345

closed

no changes

Added by Paweł Grzybowski over 12 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
-
Start date:
07/02/2012
Due date:
% Done:

0%

Estimated time:

Description

In this website there are no changes when I click the button "usun".

The button works but I can see any changes on my website when I click the button.

I don't know where is the bug.


Files

1usun.cpp (2.53 KB) 1usun.cpp Paweł Grzybowski, 07/02/2012 06:35 PM
1main.cpp (1.02 KB) 1main.cpp Paweł Grzybowski, 07/02/2012 06:35 PM
Actions #1

Updated by Koen Deforche over 12 years ago

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey,

That's hard to say because you only have part of the code...

One guess is:

ptr rekord = session.find().where("id1 = ?").bind(boost::lexical_caststd::string(k));

Here you bind a string, while in fact the underlying field (id1) is an numeric type ?

ptr rekord = session.find().where("id1 = ?").bind(k);

Perhaps you should run your code in a debugger with 'catch throw' and/or carefully examine the error log of Wt.

Regards,

koen

Actions #2

Updated by Paweł Grzybowski over 12 years ago

The code is OK, but when I run the program and I click on the links and buttons on my website the program read the data from the database but I can't see the results on the webpage for example when I enter some data and add to the database then I click on the link and I can't see the results on the webpage.

Actions #3

Updated by Koen Deforche over 11 years ago

Hey,

You need to make sure you rerun the queries if data in the database modified. Are you doing that?

koen

Actions #4

Updated by Koen Deforche almost 10 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF