I'm trying to do a search and replace script in my vBulletin database after I did an import from IPB to clean some things up. here's the code:
<?php
$link = mysql_connect ("localhost", "###", "###");
mysql_db_query("db", "UPDATE post SET pagetext = REPLACE(pagetext,"<!--QuoteBegin-","[quote]")", $link);
mysql_db_query("db", "UPDATE post SET pagetext = REPLACE(pagetext,"</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE","")", $link);
mysql_db_query("db", "UPDATE post SET pagetext = REPLACE(pagetext,"UPDATE post SET pagetext = REPLACE(pagetext,"</td></tr><tr><td id='QUOTE'>","")", $link);
?>
the error I'm getting is
"PHP Parse error: syntax error, unexpected '-', expecting T_PAAMAYIM_NEKUDOTAYIM in searchreplace.php on line 4"
What does that mean, and where is the error in my script?