MYSQL Not showing Login/Register Dialog
#10

This:
PHP код:
mysql_connect("127.0.0.1""root""""server");
    if(
mysql_errno(Database) == 0)
    {
        
printf("[MySQL] The connection has failed.");
    }
    else
    {
        
printf("[MySQL] The connection was successful.");
    } 
Should be,

PHP код:
new MySQL:Database//On the Top

Database mysql_connect("127.0.0.1""root""""server");
    if(
mysql_errno() == 0)
    {
         
printf("[MySQL] The connection was successful.");
    }
    else
    {
           
printf("[MySQL] The connection has failed."); 
    } 
mysql_errnno() will return -1 if there was any error. And 0 if there were no error. I sent you the link of wiki above.
Reply


Messages In This Thread
MYSQL Not showing Login/Register Dialog - by DerickClark - 04.06.2018, 23:13
Re: MYSQL Not showing Login/Register Dialog - by Criniti - 05.06.2018, 02:41
Re: MYSQL Not showing Login/Register Dialog - by DerickClark - 05.06.2018, 03:43
Re: MYSQL Not showing Login/Register Dialog - by GTLS - 05.06.2018, 06:36
Re: MYSQL Not showing Login/Register Dialog - by DerickClark - 05.06.2018, 06:43
Re: MYSQL Not showing Login/Register Dialog - by GTLS - 05.06.2018, 07:11
Re: MYSQL Not showing Login/Register Dialog - by DerickClark - 05.06.2018, 07:21
Re: MYSQL Not showing Login/Register Dialog - by GTLS - 05.06.2018, 08:29
Re: MYSQL Not showing Login/Register Dialog - by DerickClark - 05.06.2018, 16:11
Re: MYSQL Not showing Login/Register Dialog - by GTLS - 05.06.2018, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)