note 33163 rejected from ref.mssql by torben

From: Date: Wed, 18 Jun 2003 02:40:03 +0000
Subject: note 33163 rejected from ref.mssql by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-50548@lists.php.net to get a copy of this message
Note Submitter: yvonne@cwb.gov.tw ---- I have a code in my php program with dbname = "wel-i" (there are a "-" character included) $sql_ID=mssql_connect("xx.xx.xx.xx", "xxx", "xxx"); mssql_select_db("wel-i", $sql_ID); then I got an error: <br> <b>Warning</b>: Sybase error: Line 1: '-' syntax errorB (severity 15) in <b>./tt.ph p</b> on line <b>30</b><br> <br> If I change to use another db with dbname="welc" (without a "-") $sql_ID=mssql_connect("xx.xx.xx.xx", "xxx", "xxx"); mssql_select_db("welc", $sql_ID); Then It does work very fine. Why? Is "-" a key word?

« previous php.notes (#50548) next »