mona Posted October 15, 2005 Share Posted October 15, 2005 I want to connect from php to mysql, I saw an example in the tutorials for access database using ODBC I tried it for mysql they asked me about host name and user name and passwordi don't know what hostname should i put knowing that when i run mysql i only enter a password and it works so I don't have username in mysqlwhat should i do and can i make it without odbc Link to comment Share on other sites More sharing options...
Paim Posted October 15, 2005 Share Posted October 15, 2005 ummmmm i THINK <?php$connect = mysql_connect('localhost', 'root', 'pword');?> Thats only if you have say Apache and PHP and MySQL installed on your machine. Link to comment Share on other sites More sharing options...
mona Posted October 15, 2005 Author Share Posted October 15, 2005 thank u it works Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now