1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to select binary_data (PHP - mysql)

Discussion in 'MySQL' started by r_amin, Jun 23, 2007.

  1. r_amin

    r_amin New Member

    Joined:
    May 12, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    PHP - mysql
    -------------
    PHP:
    @mysql_select_db("binary_data") or die("Could not select binary_data database!");
    It returns =
    "Could not select binary_data database!"


    why? & How can I solve It?
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Does any DB by that name exists?? If yes, try changing the name of the DB! Plus, try this code!

    PHP:
    @mysql_select_db("binary_data") or die("Could not select binary_data database! Err: ".mysql_error()); 
     
  3. r_amin

    r_amin New Member

    Joined:
    May 12, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    @mysql_connect("localhost", "root", "ro12p") or die("Could not connect to MySQL server!");
    it works. that mean datatabase already connected.
     

Share This Page