Results 1 to 5 of 5

Thread: Php Db Connection

  1. #1
    Join Date
    Oct 2011
    Posts
    11

    Default Php Db Connection

    Here is a Php Db Connection Script

    <?php
    $dbhost = "localhost";
    $dbuser = "DBUSERNAME";
    $dbpass = "DBPASSWORD";
    $dbdata = "THEDATABASENAME";


    if ([email protected]_connect($dbhost, $dbuser, $dbpass)) {
    die("ERROR NOT CONNECTED......<br>ERROR: ".mysql_error());
    }


    if ([email protected]_select_db($dbdata)) {
    die("ERROR NO DATABASE SELECTED<br>ERROR: ".mysql_error());
    }
    mysql_query("SET NAMES 'utf8'");
    ?>

  2. #2
    Join Date
    Jan 2012
    Posts
    5

    Default

    thx for this help me verry much :) :) :)

  3. #3
    Join Date
    Apr 2012
    Posts
    6

    Default

    it's not hard to study

  4. #4
    Join Date
    Jun 2012
    Posts
    5

    Default

    Very simple and easy to understand. Thanks

  5. #5
    Join Date
    Nov 2012
    Posts
    5

    Default

    Crash Course in MySQL for PHP, Inserting, Updating, and Querying to display in HTML
    Crash Course in MySQL for PHP, Inserting, Updating, and Querying to display in HTML

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
  •