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,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice