Results 1 to 2 of 2

Thread: How to use php database!??

  1. #1
    Join Date
    Feb 2014
    Location
    india
    Posts
    74
    Rep Power
    63

    How to use php database!??

    Tell me some think about php database !!????

  2. #2
    Join Date
    Feb 2014
    Location
    india
    Posts
    155
    Rep Power
    65
    Hello Prakash !!
    Let's get started. The first thing to do is connect to the database.The function to connect to MySQL is called mysql_connect. This function returns a resource which is a pointer to the database connection. It's also called a database handle, and we'll use it in later functions. Don't forget to replace your connection details.

    $username = "your_name";
    $password = "your_password";
    $hostname = "localhost";

    //connection to the database
    $dbhandle = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to MySQL");
    echo "Connected to MySQL
    ";
    ?>!
    Last edited by arianagrand; 01-04-2014 at 03:20 PM. Reason: some mistake

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Portable Database
    By checkitout in forum Website Design
    Replies: 2
    Last Post: 18-08-2009, 03:15 PM
  2. nk ty pasal database..
    By annuR in forum Website Programming
    Replies: 9
    Last Post: 16-03-2007, 09:10 AM
  3. universe database
    By bayam04 in forum Website Programming
    Replies: 2
    Last Post: 06-11-2004, 12:30 AM
  4. php and sybase database
    By kasih in forum Website Programming
    Replies: 0
    Last Post: 11-10-2002, 03:39 PM
  5. OOP dan Database
    By kidino in forum Website Programming
    Replies: 0
    Last Post: 07-10-2002, 06:25 PM

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
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37