<?php $tot="total+1"; $s=$_POST['a']; require('connect.php'); global $pdo; foreach($s as $value) { $stmt=$pdo->prepare("INSERT INTO atten (total) VALUES(:a) where roll=?"); $stmt->bindParam(':a',$tot); $stmt->bindParam(1,$value); $stmt->execute(); } if($stmt==null) { die("error".print_r($stmt->errorinfo())); } else { print_r($stmt); echo"your attendence sucessfully update"; } $pdo=null; ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)