[b][red]This message was edited by s7r1ngs at 2004-5-2 23:6:18[/red][/b][hr]
Hello
I am a newbie in php / sql
and dont even know how i can make it work...
I installed apache... GOT an ERROR...
So, i tried abyss server...
Now, my PHP is working flawless...
But, the problem is with MySql...
I installed that in my pc...
But dont know how can i make it work....
ERROR is :
Warning: mysql_connect(): Access denied for user: '
[email protected]' (Using password: YES) in C:AWebServerhtdocsdb.php on line 6
.: Main :.
Notice: Undefined variable: action in C:AWebServerhtdocsindex.php on line 24
Notice: Use of undefined constant install - assumed 'install' in C:AWebServerhtdocsindex.php on line 24
Notice: Undefined variable: action in C:AWebServerhtdocsindex.php on line 33
Notice: Use of undefined constant install2 - assumed 'install2' in C:AWebServerhtdocsindex.php on line 33
Notice: Undefined variable: action in C:AWebServerhtdocsindex.php on line 54
I think i have to connect my webserver to sql... BUT HOW????
Plz help me!
Comments
: Hello
: I am a newbie in php / sql
:
: and dont even know how i can make it work...
:
: I installed apache... GOT an ERROR...
: So, i tried abyss server...
: Now, my PHP is working flawless...
:
: But, the problem is with MySql...
: I installed that in my pc...
: But dont know how can i make it work....
: ERROR is :
:
: Warning: mysql_connect(): Access denied for user: '[email protected]' (Using password: YES) in C:AWebServerhtdocsdb.php on line 6
: .: Main :.
:
:
: Notice: Undefined variable: action in C:AWebServerhtdocsindex.php on line 24
:
: Notice: Use of undefined constant install - assumed 'install' in C:AWebServerhtdocsindex.php on line 24
:
: Notice: Undefined variable: action in C:AWebServerhtdocsindex.php on line 33
:
: Notice: Use of undefined constant install2 - assumed 'install2' in C:AWebServerhtdocsindex.php on line 33
:
: Notice: Undefined variable: action in C:AWebServerhtdocsindex.php on line 54
:
:
: I think i have to connect my webserver to sql... BUT HOW????
:
: Plz help me!
For the mySQL part, you're trying to connect as use "me", did you create that user in mySQL? Do the passwords match correctly? Did you allow access from machine "localhost"?
For the rest, you'll probably have to post the relevant code. By that, I mean if the script is 1000 lines, don't paste them all. Just the lines referenced in the errors, and the ones around them (so we can see them in the proper context)
i designed a simple form with two input field name & age...
now i want to store them in a text file...(better in a database).
i know the php part but i dont know how to send output to a database... i want to use access or sql ...
plz ... i hope u got my point...
Thnx
:
: i designed a simple form with two input field name & age...
: now i want to store them in a text file...(better in a database).
:
: i know the php part but i dont know how to send output to a database... i want to use access or sql ...
: plz ... i hope u got my point...
If you go to www.php.net and look up the mysql functions (they all start with mysql_), you'll find all the examples you'll ever need. I've never worked with Access from PHP, so I'm not sure how to handle that.
I will try for the link ...