Quote bugs??

Discussion in 'Databases' started by DN48, Jan 16, 2009.

  1. #1
    any one have noticed this when we create a db with a hypen in the name, without "quotes"?
     
    DN48, Jan 16, 2009 IP
  2. DN48

    DN48 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i mean :

    mysql_query("CREATE DATABASE IF NOT EXISTS `$sql_base`"); -> OK
    mysql_query("CREATE DATABASE IF NOT EXISTS $sql_base"); -> BUG SOMETIMES

    (especially if $sql_base is something like "xx-yy")
     
    DN48, Jan 16, 2009 IP