Menu
old SQL statement:
$sql = “update cdb_posts set subject=’$subject’ where pid=’$pid'”;
a variable:
$backurl = “article_list.php?mode=” . $mode . “&clsid=” . $clsid. “&mp=”. $mp;
i wanna modify the SQL statement and make the value of subject a URL:
$sql = “update cdb_posts set subject='<a href=’ . ‘”‘ . ‘article_list.php?mode=’ . $mode . ‘&clsid=’ . $clsid . ‘&mp=’ . $mp . ‘”‘ where pid=’$pid'”;
error shown:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
what to do? how should i write the SQL statement?
Thank U!