+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 12

Thread: connection.php

  1. #1
    Graphic/Web Designer jwade_m's Avatar
    Join Date
    Aug 2007
    Location
    Indiana, United States
    Posts
    197

    connection.php

    Is this written right to connect to a database? Or does something need added?

    error_reporting(E_ALL | E_STRICT);
    ini_set('display_errors', true);
    $server = "";
    $username = "";
    $password = "";
    $link =mysql_connect($server,$username,$password) or die ("Could not connect db ") ;
    if (!@mysql_select_db("", $link)) { // leave the database name as anydb for now
    echo "

    There has been an error. This is the error message:

    ";
    echo "

    " . mysql_error() . "

    ";
    echo "Please Contant Your Systems Administrator with the details";
    }

    ?>
    Last edited by jwade_m; 21-01-2008 at 09:33 PM.


  2. #2
    Teeth Designer crazyleaf's Avatar
    Join Date
    Jan 2007
    Location
    CrazyLeaf HQ
    Posts
    1,606
    Seems ok.

  3. #3
    Graphic/Web Designer jwade_m's Avatar
    Join Date
    Aug 2007
    Location
    Indiana, United States
    Posts
    197
    ok. This is a bit of info from the .sql file in the db folder that the programmer sent.

    -- phpMyAdmin SQL Dump
    -- version 2.11.0
    -- phpMyAdmin | MySQL Database Administration Tool | www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Jan 10, 2008 at 09:10 AM
    -- Server version: 5.0.45
    -- PHP Version: 5.2.3

    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

    --
    -- Database: `funchill_heartlandmeds`
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table `admin`
    --

    CREATE TABLE `admin` (
    `userid` int(11) NOT NULL auto_increment,
    `username` varchar(50) default NULL,
    `password` varchar(50) default NULL,
    `status` int(11) default NULL,
    PRIMARY KEY (`userid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;



    I noticed that it still has this information:
    Host: localhost
    Database: `funchill_heartlandmeds`


    funchill_heartlandmeds is not the name of my database. Does this need changed?

  4. #4
    Netvibes is an Addiction™ Toon's Avatar
    Join Date
    Jan 2007
    Location
    Sheffield, UK
    Posts
    23,645
    Blog Entries
    12
    It will have to be your DB name

  5. #5
    Teeth Designer crazyleaf's Avatar
    Join Date
    Jan 2007
    Location
    CrazyLeaf HQ
    Posts
    1,606
    Toon is right.

  6. #6
    official g33k and RHCT ® flick's Avatar
    Join Date
    Aug 2007
    Location
    Manchester
    Posts
    3,594
    i hope those aren't the real connection details you've just provided to the world! if they are i'd definitely advise editing your post quick sharp!

  7. #7
    Graphic/Web Designer jwade_m's Avatar
    Join Date
    Aug 2007
    Location
    Indiana, United States
    Posts
    197
    They are incorrect anyway...thank you though

  8. #8
    Teeth Designer crazyleaf's Avatar
    Join Date
    Jan 2007
    Location
    CrazyLeaf HQ
    Posts
    1,606
    Quote Originally Posted by flick View Post
    i hope those aren't the real connection details you've just provided to the world! if they are i'd definitely advise editing your post quick sharp!
    Or change them. Anyway they're unless if you don't know the website address.

  9. #9
    official g33k and RHCT ® flick's Avatar
    Join Date
    Aug 2007
    Location
    Manchester
    Posts
    3,594
    Quote Originally Posted by crazyleaf View Post
    Or change them. Anyway they're unless if you don't know the website address.
    mysql.jwmull.com

  10. #10
    Teeth Designer crazyleaf's Avatar
    Join Date
    Jan 2007
    Location
    CrazyLeaf HQ
    Posts
    1,606
    Quote Originally Posted by flick View Post
    mysql.jwmull.com
    Loool ... didn't notice.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Thomas Hawk's Digital Connection
    By Toon in forum Photography Forum
    Replies: 3
    Last Post: 26-10-2007, 11:35 AM
  2. Simulating a slow connection/server
    By LeadMagnet in forum Graphic Design and Web Design Help
    Replies: 1
    Last Post: 25-07-2007, 08:43 PM
  3. connection
    By Laura Lynne in forum Off Topic
    Replies: 1
    Last Post: 10-02-2007, 10:48 PM

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


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site