in reply to Win2K DBI SQL example sought
Definitely can do. You can also look into binding of parameters, which might be a bit faster and clearer in some circumstances:
$sth = $dbh->prepare('UPDATE Images SET strID=? WHERE strID=?'); $sth->bind_param(1, $strID); $sth->bind_param(2, $strID); $sth->execute()
Alternately you can follow the suggestion above another just pass in the same variable to execute twice.
-Tats
|
|---|