Home >Backend Development >PHP Tutorial > php 操作mysql安插数据

php 操作mysql安插数据

WBOY
WBOYOriginal
2016-06-13 12:47:06901browse

php 操作mysql插入数据
1、table_arr【】里保存的是html代码。用来在网页上显示表格。
2、数据库中保存table_arr【】里的代码段的字段用的是text类型。
我的问题在于,多一个保存$table_arr[]内容,如outstanding_thesis_tab,就无法执行插入操作。否则可以。我想知道这问题出在哪里。

$first_step="insert into lw_process(process_stu_num,dic_id,t_stu_select_title,p_stu_select_title,t_ter_select_stu,p_ter_select_stu,t_stu_select_ter,p_stu_select_ter,t_open_title,p_open_title,t_sub_original_ver,p_sub_original_ver,t_mid_check,p_mid_check,t_sub_final_ver,p_sub_final_ver,t_input_score,p_input_score,now_statue,final_statue,author_promise_tab,ter_promise_tab,open_title_tab,mid_check_stu_tab,mid_check_ter_tab,tutor_score_tab,review_score_tab,reply_score_tab,complex_score_tab,reply_record_tab,outstanding_thesis_tab)  values(".$_POST['user_num'].",".$_POST['dic_id'].",'".$time_arr['t_stu_select_title']."',0,'".$time_arr['t_ter_select_stu']."',0,'".$time_arr['t_stu_select_ter']."',0,'".$time_arr['t_open_title']."',0,'".$time_arr['t_sub_original_ver']."',0,'".$time_arr['t_mid_check']."',0,'".$time_arr['t_sub_final_ver']."',0,'".$time_arr['t_input_score']."',0,0,0,'".$table_arr['作者承诺保证书']."','".$table_arr['教师承诺保证书']."','".$table_arr['开题报告表']."','".$table_arr['中期检查情况表']."','".$table_arr['中期检查教师检查表']."','".$table_arr['毕业论文(设计)指导教师成绩评定表']."','".$table_arr['评阅教师评定成绩评定表']."','".$table_arr['答辩评分表']."','".$table_arr['综合成绩评定表']."','".$table_arr['答辩记录表']."','".$table_arr['优秀论文推荐表']."')";
$first_step_rec = mysql_query($first_step,$conn);

MySQL PHP HTML
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn