Help for this page

Select Code to Download


  1. or download this
    
    $db->query( 
    'SELECT * from thistable WHERE position <= ?', 
    $position )->flat()
    
  2. or download this
    
    $db->query( 
    'SELECT * from thistable WHERE position - 1 <= ?',
    $position )->flat();
    
  3. or download this
    
    $position = 500;
    ...
    'SELECT position from thistable WHERE position <= ?', 
    $position )->flat()
    
  4. or download this
    
    $position = 500;
    ...
    'SELECT position from thistable WHERE (position-1+1) <= ?', 
    $position )->flat()
    
  5. or download this
    
    $db->query( 
    "SELECT position from thistable WHERE (position- ?) <= 500", 1 )->flat
    +()