Jump to content

Strange PHP error


flOid

Recommended Posts

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?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.