MYSQL help
#1

Hello guys.
i am having a problem with mysql.
Defined mysql
PHP код:
#define MYSQL_HOST      "localhost:0808"
#define MYSQL_USER      "11799_bmrp"
#define MYSQL_PASS      "n4Shg2z2"
#define MYSQL_DB        "11799_bmrp" 
Here is error

Код HTML:
(13531) : error 017: undefined symbol "mysql_host"
Line 13531

PHP код:
forward mysql_start();
public 
mysql_start()
{
    
mysql_debug(1);
    if (
mysql_connect(mysql_hostmysql_usermysql_databasemysql_password))
    {
        print(
"[MYSQL] Connection successful!");
    }
    else
    {
        print(
"[MYSQL] There was an error connecting to the MYSQL server");
        
IRC_GroupSay(gGroupID"IRC_Channel""[MYSQL] There was an error connecting to the MYSQL server");
    }
    return 
1;

Reply
#2

Not sure, but i think you should write them with capital letters like the way you defined them.

PHP код:
 if (mysql_connect(MYSQL_HOSTMYSQL_USERMYSQL_DATABASEMYSQL_PASSWORD)) 
Reply
#3

PHP код:
13531) : error 017undefined symbol "MYSQL_DATABASE" 
Reply
#4

Fixed thanks for helping
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)