Thread if exist ?? (5 answers)
Opened by Ronaldl at 2003-10-09 22:19

Ronaldl
 2003-10-13 21:57
#35437 #35437
User since
2003-09-09
28 Artikel
BenutzerIn
[Homepage] [default_avatar]
Also das Funktioniert bei mir nicht :
Code: (dl )
#$sth->execute($_) or die print "Couldn't execute statement: $DBI::errstr; stopped"; 


So funktioniert es:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$sth = $dbh->prepare ("SELECT ArtID, Reihenfolge, ArtNr, ArtGruppe, ArtNGruppe, ArtTitel, ArtText, ArtPreis, ArtMWSt, ArtRabatt, ArtEigenschaften, ArtBildklein, ArtBildgross FROM shop1_artikel_1 WHERE $wo1 LIKE '$buch' '$zu' ");
$sth->execute ();
while (my $ref = $sth->fetchrow_hashref())  {}
if ($sth->rows != 0)  { print "<h4><b><font color='#36C939'>Datensatz wurde gefunden !</font></b></h4>  \n";
 }
else
          {
             suche ();
             print "<font color='#FF0000'><h4><b>Datensatz wurde nicht gefunden, bitte prüfen Sie Ihre eingabe !</b></h4></font>\n";
          }

$sth->execute ();
while (my $ref = $sth->fetchrow_hashref ()){
my %hash = %{$ref};
print start_form (-action => url ()),


zu $sth->Prepare mysql prüft das nicht wie du schon sagtest...

Das mit der  "0" funktiert nur ohne anführungszeichen...

Danke für eure hilfe, aber kann mir mal jemand sagen warum ich das Forum manchmal Tageweise nicht aufrufe kann ? Heute geht es wieder .. ich verbinde mich per T-DSL 1500, spinnt der DTAG DNS oder woran liegt das ?
THX ,bis bald Ronald

View full thread if exist ??