May very well be you SP. Can you access DB w/out SP?
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
php.net gives this example:
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_db');
I realise you don't want to post your actual settings, but do they match this format? They seem to from your post.
I think a typical default setting could be:
$mysqli = new mysqli('localhost', 'root', '', 'yourdbname');
phpmyadmin doesn't depend on you specifying a host, so it may be down to your host details. I assume your username and pw will be correct if you can use them to log in to phpmyadmin.
Perhaps it's the db name? Check spelling closely - no spaces. Underscores or dashes could be confused?
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Hi j. I have no idea wny this should happen. I tried it with both just now and both worked file. Perhaps you had a $ or \ or something weird in one of the strings?
Anyway, something I'll look out for. Thanks.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Ahh. It's so good to be me sometimes... :)
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080