• Tuesday , 21 November 2017

003 PHP MySQL Database Beginner Tutorial – Insert Record with radio button in Hindi

Code Canyon



Welcome Everyone, this video tutorial series is about PHP MySQL Tutorial in Hindi. This will be help for beginner who want to learn php mysql connectivity …

Original source

3d Ocean

Related Posts

18 Comments

  1. Legend One
    September 2, 2017 at 21:17

    Hello Sir,

    Thank you for your tutorials.
    I have a mysql table WORKERS column names as firstname(varchar), lastname(varchar) and maritalstatus(bit).

    My Textboxes and Radio buttons values in php are:

    <input type="text" name="fname">
    <input type="text" name="lname">
    <input type="radio" name="marital" value=1>Yes
    <input type="radio" name="marital" value=0>No

    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $marital = (boolean) $_POST['marital'];

    If I run below query then It works fine.
    $sql = "INSERT INTO workers (firstname, lastname) VALUES('$fname','$lname')";

    If I run below query
    $sql = "INSERT INTO workers (firstname, lastname, maritalstatus) VALUES('$fname','$lname','$marital')";

    Error: Data too long for column 'maritalestatus' at row 1

    Your help will be highly appreciated.

  2. madhurima chalmella
    September 2, 2017 at 21:17

    thank you for the video sir

  3. Kiran Mughal
    September 2, 2017 at 21:17

    i got undefinex index error in making checkboxes please help

  4. krishna vishwakarma
    September 2, 2017 at 21:17

    What should we do when rqwqlard a more row then what should we do

  5. shani kamboh.
    September 2, 2017 at 21:17

    sir i have a query please help me….
    while writing this programe in my pc i got a trouble…
    aap koi fied empty chor dety hain to error nhi aata lekin mery pass error aata hai…

    like jb aap page ko first time load krty ho to submit button me koi value nhi hoti…
    aur submit button empty hota hai….
    lekin aap k page me notice nahi aata. lekin jb me esa karta hun to notice aata hai k submit me koi value nhi hai…

    same ese hi aap ne language waly checkbox bhi kuch empty chory lekin error nhi aaya…
    lekin mery pass error show hota hai k kuch veriables k andar koi value nhi hai

    please sir help me in this case

  6. sahil raza
    September 2, 2017 at 21:17

    sir pls ap ek project banayo koi easy se php me jisase sari problem solve ho jaye.

  7. jitu sharma
    September 2, 2017 at 21:17

    if($_POST["submit"]== "save")
    error
    undefined index: submit in ( file path) on line no.
    change with
    if(isset($_POST['submit']))
    error is remove but record not save. all values shows in url

  8. Louise Panvig
    September 2, 2017 at 21:17

    im very comfused. why do you delete things you wrote? im sory, but im having trouble understanding your english.

  9. Hemprakash Yaduwanshi
    September 2, 2017 at 21:17

    <!DOCTYPE html>
    <html>
    <body>

    <form action="action_page.php" method="post">
    First name:<br>
    <input type="text" name="firstname">
    <br>
    Last name:<br>
    <input type="text" name="lastname">

    <input type="submit" name="submit" value="save">

    </form>

    </body>
    </html>
    <?php
    if($_POST["submit"]=="save")
    {
    $fname=$_POST["firstname"];
    $lname=$_POST["lastname"];
    mysql_connect("localhost","root","");
    mysql_select_db("test");
    $s= "insert into cotact(firstname,lastname) values('".$fname."','". $lname."')";
    mysql_query($s),
    }
    ?>

    sir i am use the same code but its not working tell me what is wrong in that please sir help me

  10. Hemprakash Yaduwanshi
    September 2, 2017 at 21:17

    may i know which localhost are you using to make table in mysql
    reply fast

  11. Bechan Sonkar
    September 2, 2017 at 21:17

    sir,what is advantage of using double and single in values .'"v."' please tell me..

  12. be project
    September 2, 2017 at 21:17

    thank you sir for database video but plz tell me how you create mohammadi computer animation ,its play beginning this tutorial .

  13. Bilal Yousaf
    September 2, 2017 at 21:17

    assalam o alaikum mohammad bharmal………i want to know that what does this quotation mean ???
    that u wrote below the MOHAMMADI COMPUTERS…
    "BE YOTTA IN THE WORLD OF GIGA"///

  14. Pruthvirajsinh Sindhav
    September 2, 2017 at 21:17

    Thanks a lot Web-Guru…

  15. Raza Ansari
    September 2, 2017 at 21:17

    hello sir 
    thank you very much
    i am a php beginner and i want to create a online examination system. can you help me how to create online examination system in php and mysql with admin panel 
    please sir

  16. Sajid Husain
    September 2, 2017 at 21:17

    Muje php me mail send karna hai kaise karenge

  17. Debojit Chatterjee
    September 2, 2017 at 21:17

    Undefined index: submit in D:XAMPPhtdocsmyprogramsdbconnect.php on line 11

    I am facing this error in this line if($_POST["submit"]=="Save")…help me

  18. phpBasics
    September 2, 2017 at 21:17

    This script is not secure.

Leave A Comment

You must be logged in to post a comment.