请帮助解决这个错误非法字符串偏移“标题”这里是jquery
data:{option:'catapply',sr:$(":input").serialize()},
和 catapply php 数据
if($_REQUEST['option']=='catapply'){
$sc = serialize($_POST['sr']);
mysql_query("insert into user_data(uid,mid,cid,scid,data) values('$session->userid','5','5','5','$sc')");
现在我正在使用上述方法对存储的db中的上述数据进行反序列化
$sql = mysql_query("SELECT * from user_data where uid='$session->userid'");
while ($row = mysql_fetch_array($sql)) {
$un=unserialize($row['data']);
$tittle=$un['tittle'];
echo $tittle;