Page 1 of 2 12 LastLast
Results 1 to 12 of 17

Thread: Php script ko cunnect kaise karte hai mysql se

  1. #1
    Mehkar's Avatar
    Mehkar is offline Senior Member+
    Last Online
    Yesterday @ 02:13 PM
    Join Date
    29 Jun 2014
    Gender
    Male
    Posts
    335
    Threads
    20
    Credits
    248
    Thanked
    17

    Default Php script ko cunnect kaise karte hai mysql se

    Plzzzz help me

  2. #2
    fani_love's Avatar
    fani_love is offline Senior Member+
    Last Online
    28th March 2017 @ 07:59 PM
    Join Date
    07 Dec 2010
    Location
    Peshawar
    Gender
    Male
    Posts
    221
    Threads
    20
    Credits
    40
    Thanked
    2

    Default

    Quote Mehkar said: View Post
    Plzzzz help me
    ap mysql k sat connection ka keh rahy hian ?????

  3. #3
    stack87 is offline Junior Member
    Last Online
    26th September 2014 @ 02:06 AM
    Join Date
    26 Sep 2014
    Gender
    Male
    Posts
    1
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    W3schools

  4. #4
    rrashid090's Avatar
    rrashid090 is offline Senior Member+
    Last Online
    11th September 2015 @ 04:46 PM
    Join Date
    08 Nov 2013
    Location
    Lahore
    Gender
    Male
    Posts
    291
    Threads
    5
    Credits
    0
    Thanked
    6

    Default

    php script ko kis se connect kerna hay?

  5. #5
    Google SEO is offline Member
    Last Online
    29th February 2016 @ 05:39 AM
    Join Date
    27 Jul 2010
    Location
    Karachi
    Age
    35
    Gender
    Male
    Posts
    56
    Threads
    11
    Thanked
    0

    Default

    google pe ap sirf how to kai sath search karain
    apko poori tricks kai articles aur videos miljaingi

  6. #6
    sibghat ulah's Avatar
    sibghat ulah is offline Senior Member+
    Last Online
    4th April 2017 @ 01:30 PM
    Join Date
    14 Apr 2014
    Location
    Islam/abbotabad
    Age
    18
    Gender
    Male
    Posts
    79
    Threads
    3
    Credits
    61
    Thanked
    4

    Smile

    include ("includes/connect.php");
    index file ma ye code try kar lo

  7. #7
    khaleeq81 is offline Senior Member+
    Last Online
    14th August 2015 @ 12:11 PM
    Join Date
    01 Feb 2009
    Posts
    37
    Threads
    3
    Credits
    271
    Thanked: 1

    Default

    wa ge kya tareeqa btaya ha

  8. #8
    saim ijaz is offline Junior Member
    Last Online
    5th November 2017 @ 03:46 PM
    Join Date
    06 Jun 2015
    Location
    Tandlianwala
    Age
    18
    Gender
    Male
    Posts
    22
    Threads
    4
    Credits
    20
    Thanked
    4

    Default

    Pleaz Help Me

  9. #9
    xaad67 is offline Junior Member
    Last Online
    9th November 2015 @ 09:32 AM
    Join Date
    09 Nov 2015
    Age
    24
    Gender
    Male
    Posts
    3
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    sab se phele connection stream generate hogi

    <?php

    // 1. Create a database connection
    $connection = mysql_connect(DB_SERVER,DB_USER,DB_PASS);
    if (!$connection) {
    die("Database connection failed: " . mysql_error());
    }

    // 2. Select a database to use
    $db_select = mysql_select_db(DB_NAME,$connection);
    if (!$db_select) {
    die("Database selection failed: " . mysql_error());
    }
    ?>

  10. #10
    xaad67 is offline Junior Member
    Last Online
    9th November 2015 @ 09:32 AM
    Join Date
    09 Nov 2015
    Age
    24
    Gender
    Male
    Posts
    3
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    <?php

    3. //Perform Query

    $sql = "SELECT id, firstname, lastname FROM MyGuests";
    $result = $conn->query($sql);

    4. //Fetch Data(Data fetch sirf SELECT statement pe hoga kyn SELECT return karti hai)

    while($row = $result->fetch_assoc()) {
    echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. ";

    5. // Close Connection
    $conn->close();


    ?>

  11. #11
    Atique rk is offline Member
    Last Online
    10th February 2017 @ 09:13 PM
    Join Date
    01 May 2015
    Location
    @itd
    Age
    22
    Gender
    Male
    Posts
    1,460
    Threads
    48
    Thanked
    151

    Default

    Code:
    <?php
    $con=mysql_connect("hostname","usernamr","password")or die("eror");
    //ya yahan par host sa connect karna k lia
    mysql_select_db("dbname",$con);
    //aur ya ap ka db select karna 
    ?>
    <?php
    $con=mysql_connect("hostname","usernamr","password ")or die("eror");
    //ya yahan par host sa connect karna k lia
    mysql_select_db("dbname",$con);
    //aur ya ap ka db select karna
    ?>

  12. #12
    Khan Solangi's Avatar
    Khan Solangi is offline Senior Member+
    Last Online
    29th May 2017 @ 04:47 PM
    Join Date
    27 Apr 2015
    Age
    25
    Gender
    Male
    Posts
    78
    Threads
    7
    Credits
    659
    Thanked
    7

    Default

    Is File Ko Edit Krain
    config.php
    Khan Solangi Professional Web Desinger Of Pakistan.

Page 1 of 2 12 LastLast

Similar Threads

  1. *******(Hujra)*******
    By mkasikandar in forum Pashto
    Replies: 56980
    Last Post: 9th October 2017, 09:06 PM
  2. Replies: 19
    Last Post: 5th September 2015, 09:52 PM
  3. ISHAQ karte ho aur,zindagi ki baat karte ho,
    By vkky in forum Roman Urdu Poetry
    Replies: 0
    Last Post: 5th May 2012, 12:35 AM
  4. PHP Zone
    By shakeel in forum English IT Zone
    Replies: 27
    Last Post: 16th December 2011, 03:43 AM
  5. If you need help abt PHP..Mysql..post here.
    By scimo in forum Ask an Expert
    Replies: 9
    Last Post: 20th April 2009, 09:10 AM

Bookmarks

Posting Permissions

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