Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

DBI (incorrectly) bound variables

by Xaositect (Friar)
on Jan 31, 2003 at 19:36 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found