PHP Code:
ini_set('display_errors', 1);
if(!$link = mysql_connect('localhost', 'root', ''))
echo fails_connection;
mysql_set_charset('utf8',$link);
if(!mysql_select_db('_wp', $link))
echo fails_selection;
$link2 = '<a href="http://bburl.co/showthread.php?t=threadid">link</a>';
mysql_query("update wp_posts set post_content = concat(post_content,". mysql_real_escape_string($link2) .") where id = 1794");
echo mysql_error();
mysql_close();
When i try something like this, i get this error
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<a href=\"http://bburl.co/showthread.php?t=threadid\">link</a>) where id = 1794' at line 1
What can we do?