Jump to content

Recommended Posts

Posted

Am bagat panel pe webhost si am si conectat cu baza de date si nustiu de ce imi da aceste erori:

[31-Mar-2020 20:06:51 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:06:51 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16
[31-Mar-2020 20:06:53 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:06:53 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16
[31-Mar-2020 20:06:57 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:06:57 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16
[31-Mar-2020 20:07:03 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:07:03 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16
[31-Mar-2020 20:07:09 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:07:09 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16
[31-Mar-2020 20:19:28 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:19:28 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16
[31-Mar-2020 20:19:32 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): Connection refused in /home/bmizoeu/public_html/panel/config.php on line 7
[31-Mar-2020 20:19:32 UTC] PHP Fatal error:  Call to a member function query() on boolean in /home/bmizoeu/public_html/panel/config.php on line 16

Acestea is randurile unde da erori:

(1)<?php
(2)define('DB_SERVER', '');
(3)define('DB_USERNAME', '');
(4)define('DB_PASSWORD', '');
(5)define('DB_DATABASE', '');
(6)
(7)$db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
(8)$csfr = getToken(24);
(9)
(10)date_default_timezone_set('Europa/Bucharest');
(11)
(12)$author = "NewTon";
(13)$serverURL = "http://";
(14)$serverName = "";
(15)
(16)$result = $db->query("SELECT COUNT(*) FROM `users` WHERE Status='1'");

In paranteze is randurile.

Help va rog cineva ca is incepator in .php..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.