• We just launched and are currently in beta. Join us as we build and grow the community.

Need help with mysql

EvilToast

Social Engineering Counter-Expert
E Rep
0
0
0
Rep
0
E Vouches
0
0
0
Vouches
0
Posts
59
Likes
186
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
When I try to login to the admin panel I got this:
Warning: mysqli::mysqli() [http://testit.netne.net/android/mysqli.mysqli]: (HY000/1130): Host '31.170.160.169' is not allowed to connect to this MySQL server in /home/a1601680/public_html/android/admin.php on line 11
Warning: mysqli::autocommit() [http://testit.netne.net/android/mysqli.autocommit]: Couldn't fetch mysqli in /home/a1601680/public_html/android/admin.php on line 12
Warning: mysqli::prepare() [http://testit.netne.net/android/mysqli.prepare]: Couldn't fetch mysqli in /home/a1601680/public_html/android/admin.php on line 13
Fatal error: Call to a member function bind_param() on a non-object in /home/a1601680/public_html/android/admin.php on line 14
----------------------
Line 11 - 14 from admin.php:
$db = new mysqli($dbhost, $dbuser, $dbpass, $dbname) or die("error to connect db");
$db->autocommit(FALSE); $stmt = $db->prepare("SELECT * FROM user WHERE login = ?"); $stmt->bind_param("s",$_SESSION['user']); ----------------------- Lines from dbconfig: <? $dbhost='31.170.160.169'; $dbuser='root'; $dbpass='root'; $dbname='android'; ?> Can someone please tell me where the failure is ? - thanks :-)
Edited by AndreasGoette, 03 March 2016 - 11:09 AM.
 

435,057

313,705

313,714

Top