|
我写了一个CGI script 来connect mysql database, 但出现了这样的error:
Global symbol "$host" requires explicit package name at login.cgi line 42.
Global symbol "$database" requires explicit package name at login.cgi line 43.
Global symbol "$user" requires explicit package name at login.cgi line 44.
Global symbol "$db" requires explicit package name at login.cgi line 47.
Global symbol "$host" requires explicit package name at login.cgi line 47.
Global symbol "$database" requires explicit package name at login.cgi line 47.
Global symbol "$user" requires explicit package name at login.cgi line 47.
Global symbol "$db" requires explicit package name at login.cgi line 48.
Global symbol "$database" requires explicit package name at login.cgi line 48.
Global symbol "$pid" requires explicit package name at login.cgi line 50.
Global symbol "$db" requires explicit package name at login.cgi line 50.
Global symbol "%hash" requires explicit package name at login.cgi line 53.
Global symbol "$pid" requires explicit package name at login.cgi line 53.
Global symbol "$password_in_db" requires explicit package name at login.cgi line 55.
Global symbol "%hash" requires explicit package name at login.cgi line 55.
Global symbol "$password_in_db" requires explicit package name at login.cgi line 58.
Execution of login.cgi aborted due to compilation errors.
请问有人能告诉我是什么问题,非常谢谢你们的帮助!
[ 本帖最后由 nggs8411 于 23-5-2006 04:04 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 24-5-2006 01:56 PM
|
显示全部楼层
你在declare variable时有没有加 "my"??? |
|
|
|
|
|
|
| |
本周最热论坛帖子
|