NYCPHP Meetup

NYPHP.org

[nycphp-talk] accessing phpmyadmin as different users

Nestor Florez nestorflorez at earthlink.net
Fri Oct 17 13:13:45 EDT 2003


I tried it with $_GET and $_POST and with either of them I am able to print the information in the 
variables.

But it fails

Nestor :-)

-----Original Message-----
From: Analysis & Solutions <danielc at analysisandsolutions.com>
Sent: Oct 17, 2003 9:38 AM
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] accessing phpmyadmin as different users

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
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk






More information about the talk mailing list