请指教 直接往求购表中增加数据
各位大侠看下以下代码是哪里问题,请指教 数据目前是加不了 提交后空白$pptword = strip_tags(cat_pos(get_cat($post['catid']), ','));
$keyword = $title.$pptword;
$tarea = area_pos($areaid, ' ');
$ttag = $MOD.$v;
$this->db->query("INSERT INTO {$DT_PRE}buy_24 (catid,typeid,areaid,level,title,introduce,tag,keyword,pptword,tousername,tocompany,username, company,truename,telephone,address,email,qq,adddate) VALUES ('$post',0,'$areaid',0,'$title','$content','$ttag','$keyword','$pptword','$v','$v','$user','$company','$truename','$telephone','$tarea','$email','$qq','$adddate')");
$this->itemid = $this->db->insert_id();
//$content_table = content_table($this->moduleid, $this->itemid, $this->split, $this->table_data);
$this->db->query("REPLACE INTO {$DT_PRE}buy_data_24 (itemid,content) VALUES ('$this->itemid', '$content')");
$this->update($this->itemid);
应该 可以导入 吧
http://bbs.destoon.com/static/image/smiley/default/sad.gif
不行
是不是
$this->db->query("INSERT INTO {$DT_PRE}buy_24 (catid,typeid,areaid,level,title,introduce,tag,keyword,pptword,tousername,tocompany,username, company,truename,telephone,address,email,qq,adddate) VALUES ('$post',0,'$areaid',0,'$title','$content','$ttag','$keyword','$pptword','$v','$v','$user','$company','$truename','$telephone','$tarea','$email','$qq','$adddate')");
这个有问题?、
购物涉及到多张表,还是手动录入的比较好
jeky656 发表于 2015-9-29 16:28
是不是
$this->db->query("INSERT INTO {$DT_PRE}buy_24 (catid,typeid,areaid,level,title,introduce,tag ...
如果你不会 你可以参考网站后台默认备份的数据库文件 看看
是不是语法有问题,数据字段是参考数据库,并增加了几个字段
打印一步一步检查错误,到哪行打印不出了,就是哪行出问题
页:
[1]