【发布时间】:2011-04-20 05:51:16
【问题描述】:
$ikona = "layout/achiv/a_icon.png";
//$opis = string of text without quotation marks
$addit = '<img src="'.$ikona.'" onclick="alert(/'On day '.date("Y-m-d H:i:s").' user has '.htmlspecialchars($opis).'/'); ">';
mysql_query("UPDATE `accounts` SET `this_damn_cell`='".$addit."'
WHERE id='".$_POST["id"]."' ") or die(mysql_error()); //error is not showing up
echo $addit; //shows correctly
它似乎工作正常,但在 sql base 中没有添加任何内容。所有字段都存在。 this_damn_cell 类型为 TEXT 如有任何帮助,请提前感谢:)
【问题讨论】: