Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$sqlstatement2 =qq~ SELECT rowid, NamaBarang FROM barangan WHERE CompanyID = '$companyid' ORDER by rowid ASC ~; $sth2 = $dbh->prepare($sqlstatement2); $sth2->execute() or &common_error("SQL Error","Couldn't e +xecute statement2: $DBI::errstr",1); if($sth2->rows() <= 0) { $output .= qq~ <tr> <td colspan="3"><b><font size="2" face="Tah +oma"> No data $companyid in your list, please add.</font></b></t +d> </tr> </table>~; $sth -> finish(); } else { $sth2= $dbh->prepare($sqlstatement2); $sth2->execute() or &common_error("$sqlstatement2","C +ouldn't execute statement1: $DBI::errstr",1); $number = 0; $harga = 0, $harga2 = kan.$harga; $hargas + = 0, $hargas2 = aan.$hargas ; $hargaz = 0, $hargas3 = gan.$hargaz ; + while(($id,$ach) = $sth->fetchrow_array()) {
20040729 Edit by ysth: Change title from SQLite
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting from MySQL to SQLite
by davido (Cardinal) on Jul 29, 2004 at 07:56 UTC | |
by Anonymous Monk on Jul 29, 2004 at 08:49 UTC | |
by davido (Cardinal) on Jul 29, 2004 at 15:44 UTC | |
|
Re: Converting from MySQL to SQLite
by Tomte (Priest) on Jul 29, 2004 at 08:58 UTC | |
|
Re: Converting from MySQL to SQLite
by ysth (Canon) on Jul 29, 2004 at 07:08 UTC | |
|
Re: Converting from MySQL to SQLite
by Matts (Deacon) on Aug 02, 2004 at 19:07 UTC |