2维数组 input 处理
- font size decrease font size increase font size
- Print Email
输出
$rs9 = mysql_fetch_array($sql9);
if($rs9!=null)
{
$i=1;
do{
?>
<tr>
<td id="mytd"></td>
<td id="mytd"><?php echo $ini_array['menu9_examen_Resultats_Examens'].":" ;?><input type="text" name="area[][1]"><input type="hidden" name="area[][2]" value=""></td>
</tr>
<?php $i++; }
while($rs9 = mysql_fetch_array($sql9));
} ?>
处理
if($_GET['action']=="submit"){
$notes = $_POST['area'];
}
foreach( $notes as $key=> $value)
{
$resualt=mysql_query("
REPLACE INTO `ilci`.`tbl_choix_examen_notes` (
`notes_stu_id` ,
`notes_empl_id` ,
`notes_note`
)
VALUES (
'$value[2]', '$empl_id', '$value[1]'
);
");
if($resualt){
echo "<tr><td id=\"mytd\">".$ini_array['menu9_examen_mysql_success']."</td></tr>" ; }
else{
echo "<tr><td id=\"mytd\">".$ini_array['menu9_examen_mysql_fail']."</td></tr>" ; }
}
?>
</table>
<?php
}
else {
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 403616 | {main}( ) | .../index.php:0 |
2 | 0.0484 | 1321288 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0484 | 1321288 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2173 | 2979456 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2182 | 3003912 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2192 | 3059240 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2193 | 3076296 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2267 | 3220384 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2267 | 3220384 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.2315 | 3489464 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.2315 | 3489464 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.2329 | 3507984 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.2345 | 3528400 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.2803 | 4024640 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.2803 | 4024640 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.2824 | 4199360 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in MYSQL
- Read 3404 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 403616 | {main}( ) | .../index.php:0 |
2 | 0.0484 | 1321288 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0484 | 1321288 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2173 | 2979456 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2182 | 3003912 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2192 | 3059240 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2193 | 3076296 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2267 | 3220384 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2267 | 3220384 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.2315 | 3489464 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.2315 | 3489464 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.2329 | 3507984 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.2345 | 3528400 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.2803 | 4024640 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.2803 | 4024640 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.2824 | 4199360 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |