Help for this page

Select Code to Download


  1. or download this
        while (@dataf = $sthf->fetchrow_array())
        {
            $filiais[$xf] = $dataf[0];
            $xf++;
        }
    
  2. or download this
    $sth->execute;
    $sth->bind_columns(\my $x, \my $y);
    while ($sth->fetch) {
       # use $x and #y
    }
    
  3. or download this
    my $sth = $dbh->prepare('select w from x where y = ? and z = ?');
    $sth->execute($y, $z);