[[dbSet()]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:create:functions:dbset [24.01.2015 14:29] – [Example 2] alexander.ritteren:create:functions:dbset [16.11.2020 15:22] – [Example 2] admin
Line 56: Line 56:
 <code php> <code php>
 // Counter increments by one // Counter increments by one
-if (isset($counted)) {+if (!isset($counted)) {
   $info = dbGet(reference());   $info = dbGet(reference());
   $info[1]++;   $info[1]++;
Line 69: Line 69:
 ===== Example 3 ===== ===== Example 3 =====
  
-Perhaps the entry for the reference from example 2 should also just be deleted when the first participant from the company has filled out the questionnaire. To do so, the second PHP code is modified as follows.+Perhaps the reference entry from example 2 should just be deleted when the first participant from the company has filled out the questionnaire. To do so, the second PHP code is modified as follows.
  
 <code php> <code php>
 dbSet(reference(), false); dbSet(reference(), false);
 </code> </code>
en/create/functions/dbset.txt · Last modified: 09.03.2022 11:02 by ruth.noppeney
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki