資源簡介
php 動態 增加 表單項并生成insert語句
代碼片段和文件信息
if($_POST){
//print_r($_POST);
/*$num=count($_POST)-1;
$content=array($_POST);
//print_r($content[0]);
for($i=0;$i<$num;$i++){
//echo?$str=“str“.($i+1);
echo?“
“;
//echo?$$one;//=$content[0][“str“.($i+1)];
echo?$$str=$content[0][“str“.($i+1)];
echo?“
“;
}
/////////////////////////
echo?“
“;
function?su($i){
echo?“insert?into?(strstrstr)values(‘“.$str.“‘‘“.$str.“‘‘“.$str.“‘)“;
for($i=0;$i<$num;$i++){
}
return??$info1;
}
//echo?su($num);
echo?“
“;
//////////////////////////////
echo?$str1.“
“;
echo?$str2.“
“;
echo?$str3.“
“;
echo?($num/2).“
“;
}
*/
echo?“
“;
??function?kvavles($_where)?{
$where?=?‘‘;
if?(count($_where)?>?1)?{
foreach?($_where?as?$wheres)?{
if($wheres?!=“提
- 上一篇:php迷你smarty模版(僅供參考學習)
- 下一篇:網站用途包源碼
評論
共有 條評論