Checkbox Values edit and update from mysql database in PHP Tutorial-106(Hindi/Urdu)

Php

Video is ready, Click Here to View ×


multiple checkbox values edit and update using implode,explode in php tutorial hindi.update query in php. update in php. Best PHP Tutorial in Hindi. Best HTML Tutorial In Hindi. Best CSS Tutorial In Hindi. Best Mysql Database Tutorial in Hindi.

13 thoughts on “Checkbox Values edit and update from mysql database in PHP Tutorial-106(Hindi/Urdu)

  1. /* This is my code,when i execute don't get multiple value,issue only for multiple values getting…..please send me solutions..*/

    <html>
    <body>
    <?php
    include("customercon.php");

    $view="SELECT * from registration3 WHERE id=".$_GET['id'];
    $res=mysqli_query($conn,$view);
    $row= mysqli_fetch_array($res);

    $checkbox=$row["checkbox"];
    $b=explode(" , " , $checkbox);

    ?>
    <form class='form' action='adminedit.php' method='POST'>
    <input class='input' type='hidden' name='id' value="<?php echo $row['id'];?>" />
    <input type='checkbox' name='checkbox[]' value='C/C++' <?php
    if(in_array('C/C++',$b))
    {
    echo "checked";
    }
    ?>><label>C/C++</label><br/>

    <input type='checkbox' name='checkbox[]' value='Java' <?php
    if(in_array("Java",$b))
    {
    echo "checked";
    }
    ?>> <label>Java</label><br/>

    <input type="checkbox" name="checkbox[]" value="PHP" <?php
    if(in_array("PHP",$b))
    {
    echo "checked";
    }
    ?> ><label>PHP</label><br/>
    <input type="checkbox" name="checkbox[]" value="dotnet" <?php
    if(in_array("dotnet",$b))
    {
    echo "checked";
    }
    ?>><label>dotnet</label><br/>
    </form>

    </body>
    </html>

Leave a Reply

Your email address will not be published. Required fields are marked *