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.
-TatsIn reply to Re: Win2K DBI SQL example sought
by Itatsumaki
in thread Win2K DBI SQL example sought
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |