Forum Moderators: coopster
I have this code in update.php:
<?
$id=$_GET['post_content'];
$username="username";
$password="password";
$database="mydb";
mysql_connect(localhost,$username,$password);
$query='update wp_posts set post_content=REPLACE(post_content,"Ezine","Articles")';
mysql_query($query);
echo "Record Updated";
mysql_close();
?>
I have error:
Parse error: parse error, unexpected T_STRING in /home/blueairn/public_html/update.php on line 9
this is mysql_query($query);
Where is wrong? Why doesnt update ezine text with articles text from that database?
Regards,
Dan
[edited by: jatar_k at 6:35 pm (utc) on Jan. 3, 2006]
[edit reason] generalized user/pass [/edit]