Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

DBI (incorrectly) bound variables

by Xaositect (Friar)
on Jan 31, 2003 at 19:36 UTC ( #231691=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <A href="catalog.cgi?startitem=21">Next</A>
    
  2. or download this
      $sth = $self->param('dbh_shopping')->prepare(qq{
        SELECT
    ...
      });
      my $start_item = ($self->query->param('startitem') > 0)
        ? $self->query->param('startitem') - 1 : 0;
    
  3. or download this
      $sth->execute(
        $self->param('catalog_id'),
        $start_item,
        20
      );
    
  4. or download this
    $start_item + 0
    int($start_item)
    my $start_item2 = $start_item;
    
  5. or download this
      my $this_stupid_counter = 0;
      for (my $x=0; $x<$self->query->param('startitem'); $x++) {
    ...
        $this_stupid_counter,
        20
      );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://231691]
Approved by Nitrox
Front-paged by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2019-06-26 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (110 votes). Check out past polls.

    Notices?