Ec (2); phpexplode function usage, this is my own explode usage if (! Empty ($ ct) {& nbsp; if (strpos ($ ct, & quot; | & quot;) false) {& nbsp; & nbsp; mysql_query ($ SQL) ordie (mysql_error (); & nbsp; script ec (2); script
Php explode function usage, which is my own explode usage
If (! Empty ($ ct )){
If (strpos ($ ct, "|") = false ){
Mysql_query ($ SQL) or die (mysql_error ());
Exit ("script" alert ('insert success! '); Location = 'add _ type. php'; script ");
} Else {
$ Ex = explode ("|", $ ct );
For ($ I = 0; $ I
$ R = mysql_query ("select * from ffff where zddd = '". $ ex [$ I]. "'");
If (! Mysql_fetch_array ($ r )){
Mysql_query ("insert into rwerew (f_idfff, z_time) value ($ zm ,'". $ ex [$ I]. "','". date ("Y-m-d "). "')") or die (mysql_error ());
}
}
Exit ("script" alert ('insert success! '); Location = 'add _ type. php'; script ");
}
} Else {
Exit ("script" alert ('info Error! '); History. back (); script ");
}
For Original article reprinted, please note: www.111cn.net