2009-12-03 19:41:25 +00:00
|
|
|
<?
|
|
|
|
|
2009-12-03 19:43:18 +00:00
|
|
|
function db_update_155_post() {
|
2009-12-03 19:52:59 +00:00
|
|
|
//we need to query the stuff from the table
|
2009-12-03 19:41:25 +00:00
|
|
|
$q=mysql_query("SELECT * FROM emails");
|
|
|
|
while($r=mysql_fetch_object($q)) {
|
2009-12-03 20:55:16 +00:00
|
|
|
echo "Updating email id $r->id\n";
|
2009-12-03 19:41:25 +00:00
|
|
|
mysql_query("UPDATE emails SET
|
2009-12-03 20:55:16 +00:00
|
|
|
body='".mysql_real_escape_string(iconv("ISO-8859-1","UTF-8//TRANSLIT",$r->body))."' ,
|
|
|
|
bodyhtml='".mysql_real_escape_string(iconv("ISO-8859-1","UTF-8//TRANSLIT",$r->bodyhtml))."' ,
|
|
|
|
subject='".mysql_real_escape_string(iconv("ISO-8859-1","UTF-8//TRANSLIT",$r->subject))."'
|
2009-12-03 19:41:25 +00:00
|
|
|
WHERE id='$r->id'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|