schnarff has asked for the wisdom of the Perl Monks concerning the following question:
After filling up an array with the appropriate values -- and yes, I'm checking that the values are in the right order, and of the right number -- I call this code:UPADTE urls SET hits = "?", unixdate = "?", ip1 = "?" WHERE id = ?
Amazingly enough, nothing is printing (I'd earlier printed out my http headers and other data, so it's not that I can't print altogether) at all on this. Meanwhile, my database does not reflect the update at all.$sth = $dbh->prepare($stmt); #$stmt is, of course, my string $sth->execute(@values); my $tmp = $sth->rows; print "Rows Affected: $rows"; #Just to see if it worked.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI Update Query Not Updating
by abstracts (Hermit) on Mar 16, 2002 at 03:20 UTC | |
|
Re: DBI Update Query Not Updating
by metadatum (Scribe) on Mar 16, 2002 at 04:49 UTC | |
by Hero Zzyzzx (Curate) on Mar 16, 2002 at 15:04 UTC | |
|
Re: DBI Update Query Not Updating
by seattlejohn (Deacon) on Mar 17, 2002 at 19:21 UTC |