NYCPHP Meetup

NYPHP.org

[nycphp-talk] accessing phpmyadmin as different users

Analysis & Solutions danielc at analysisandsolutions.com
Fri Oct 17 12:38:09 EDT 2003


Hi Nestor:

On Fri, Oct 17, 2003 at 09:11:21AM -0700, Nestor Florez wrote:
> 
> $cfg['Servers'][$i]['user'] = $_GET['userid'];
> $cfg['Servers'][$i]['password'] = $_GET['pwd'];
> 
> But when I try this I get an error:
> Access denied for user: 'ODBC at localhost' (Using password: NO)

So, it sounds like the information you suppliied in $_GET isn't getting 
there.


> If I change the code to :
> $cfg['Servers'][$i]['user'] = 'view';
> $cfg['Servers'][$i]['password'] = 'view';

So, to confirm my theory you can put "view" and "view" into the form you 
created.  Bet you'll get the same error message.

Do you really mean $_POST?

Regardless, you need to alter your code to obtain the user input from the 
right place and naturally.

Enjoy,

--Dan

-- 
     FREE scripts that make web and database programming easier
           http://www.analysisandsolutions.com/software/
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409



More information about the talk mailing list