• The Facebook Platform

Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2010
    Location
    Lahore, Pakistan
    Age
    25
    Posts
    3,818
    Points
    6,772.51
    Rep Power
    10000

    movie 14 - Insert Data into MySQL Database using PHP - Tutorial in Urdu


    Insert Data into MySQL Database using PHP

    In This tutorial we are going to learn " how to insert data into mysql database with php".







    Youtube Video



    Dailymotion Video



    PHP Code:
    <?php
    include("connect.php");

    $username "raza";
    $password "abc123";
    $email "[email protected]";
    $fullname "Shahzad Raza";


    $query "INSERT INTO users (user_name, user_password, user_email, full_name) VALUES ('$username','$password','$email','$fullname')";

    $result mysql_query($query);

    if(
    $result) {
        
        echo 
    "Record Inserted Successfully!";
    }
    else {
        echo 
    mysql_error();
    }
    ?>
    Last edited by Їийоcёйт Кїllєґ; 03-13-2014 at 06:38 AM.
    Find Me On Social Networks

    Facebook | Twitter | Google+



 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •