faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes


How can i access data in a mysql database with php?

Feb 27th, 2008 02:11
forum net tr, cemal kemal, Praveen Kumar Kukkapalli, User Admin, http://www.findadult.info

First you need to connect to teh database 
mysql_connect("hostname", "username", password);
//Select database
//Select values from database tables
$result = mysql_query("SELECT fields FROM table_name WHERE condition");