Is it safe to do this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is it safe to do this:

<snip>

    foreach ($addresses as $email) {
        $body = str_replace($email, $comp_uri, $body);
   mysql_query ("update users SET email_setting='-1'
WHERE email='$email'") or die ("Can't set
email_setting");
   mysql_query ("UPDATE users SET email_setting='-1'
WHERE email_setting > -5") or die ("Unable ");

</snip>

Or would I be better to do this?:

<snip>

    foreach ($addresses as $email) {
        $body = str_replace($email, $comp_uri, $body);
   mysql_query ("update users SET emailerror='+1'
WHERE email='$email'") or die ("Can't update
email_setting");
   mysql_query ("UPDATE users SET email_setting='-1'
WHERE emailerror > 5") or die ("Unable ");

</snip>

Suggestions welcome.

Jerry

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux