Monday, 16 March 2015

How to insert multiple chackbox value in Mvc

model  query.php
=============
 function  insert($data)    {//chack box valu insert multiple    $data['c1']=$data['c1'][0].','.$data['c1'][1];
        $sql="insert into addmvc values('','".$data['txtname']."','".$data['txtmname']."','".$data['txtlname']."','".$data['txtpname']."','".$data['txtpass']."','".$data['r1']."','".$data['c1']."')";        mysql_query($sql);//        echo "hello";       // echo "<script>alert('insert');document.location='index.php?op=addform'</script>";        echo "<script>alert('insert');</script>";        header('location:index.php?op=pro');


    }

No comments:

Post a Comment