Mysql question
#10

Код:
    new MySQLOpt: option_id = mysql_init_options();

    mysql_set_option(option_id, AUTO_RECONNECT, true);

    g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, option_id);
Get rid of all of this. This is bad practice. How hard is it for people to understand that MySQL automatically reconnects by default?

Код:
g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE);
This is what your g_SQL variable should become. Also, when defining the g_SQL variable, are you using the MySQL: tag before it?
Reply


Messages In This Thread
Mysql question - by KinderClans - 24.10.2018, 15:35
Re: Mysql question - by NaS - 24.10.2018, 16:13
Re: Mysql question - by KinderClans - 24.10.2018, 16:22
Re: Mysql question - by NaS - 24.10.2018, 16:23
Re: Mysql question - by KinderClans - 24.10.2018, 16:27
Re: Mysql question - by DaniceMcHarley - 24.10.2018, 16:29
Re: Mysql question - by KinderClans - 24.10.2018, 16:35
Re: Mysql question - by Infin1ty - 24.10.2018, 17:19
Re: Mysql question - by KinderClans - 24.10.2018, 17:22
Re: Mysql question - by Infin1ty - 24.10.2018, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)