nrsh_ram Posted June 10, 2008 Share Posted June 10, 2008 im new in php n mysql....i installed apache,php n mysql...apache n php can run in localhost. and mysql also can in command prompt...but i still confuse wat should i do to link database with php form? where to insert the database, in command prompt? i really need help... Link to comment https://forums.phpfreaks.com/topic/109626-how-to-start-mysql/ Share on other sites More sharing options...
DarkWater Posted June 10, 2008 Share Posted June 10, 2008 Check out the mysql_* functions in the PHP manual. You need to establish a connection resource with mysql_connect. $conn = mysql_connect("localhost", "username", "password"); Then select the database: mysql_select_db("forums"); Then you can execute queries. Link to comment https://forums.phpfreaks.com/topic/109626-how-to-start-mysql/#findComment-562348 Share on other sites More sharing options...
Barand Posted June 10, 2008 Share Posted June 10, 2008 try a tutorial like http://www.sitepoint.com/article/getting-started-mysql Link to comment https://forums.phpfreaks.com/topic/109626-how-to-start-mysql/#findComment-562363 Share on other sites More sharing options...
nrsh_ram Posted June 10, 2008 Author Share Posted June 10, 2008 i still confuse...... i really don't know where to start. Link to comment https://forums.phpfreaks.com/topic/109626-how-to-start-mysql/#findComment-562437 Share on other sites More sharing options...
discomatt Posted June 10, 2008 Share Posted June 10, 2008 Start here http://sqlcourse.com/intro.html Then here http://www.tizag.com/phpT/ Then maybe here http://www.tizag.com/mysqlTutorial/ Link to comment https://forums.phpfreaks.com/topic/109626-how-to-start-mysql/#findComment-562444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.