Name is a variable, how to write value to the database
while (!! $_rows = _fetch_array_list ($_RESULT2)) {
?>
Normal
Not normal
This sentence
Normal
Not normal
Do not know how to do, name is a variable, how to upload to the database?
Here are the processed statements
$hh =$_post[' Hao1 '];
$aa =$_post[' bh ');
$BB =$_post[' XM '];
$CC =$_post[' Fangfa '];
$dd =$_post[' Biaozhun '];
$_time=$_post[' time ';
$zt =$_post["];
$name =implode (_fetch_array_list (mysql_query ("Select name from Jsy WHERE Gonghao = $_gh"));
if (Is_array ($AA)) {
foreach ($aa as $i = = $v) {
mysql_query ("INSERT into DJJL (HAO,BH,XM,FANGFA,BIAOZHUN,GONGHAO,NAME,TIME,ZT) VALUES (
' $hh ',
' $v ',
' {$BB [$i]} ',
' {$CC [$i]} ',
' {$DD [$i]} ',
' $_gh ',
' $name ',
' $_time ',
' {$zt [$i]} '
) or Die (' SQL execution failed! ') '. Mysql_error ());}}
Mysql_close ();
_alert_location (' Add success! ', ' ksdj.php ');
?>
------Solution--------------------
So the name is tried:
$i = 0;
while (!! $_rows = _fetch_array_list ($_RESULT2)) {
............
Normal
Not normal
$i + +;
}
Then after submission:
$zt =$_post[' ZT ']; can participate in traversal.