Barny Bootneck Posted April 11, 2007 Share Posted April 11, 2007 I am a newbie to PHP but have been set a task to use the MYSQL database I have created and be able to print information from it using PHP but the problem is I amnot sure where to start Can anyone please Help. Link to comment https://forums.phpfreaks.com/topic/46561-printing-from-a-mysql-database/ Share on other sites More sharing options...
Lumio Posted April 11, 2007 Share Posted April 11, 2007 read www.php.net/mysql using mysql_connect() to create a connection to MySQL using mysql_query() to make a request using mysql_fetch_assoc() to get result. Link to comment https://forums.phpfreaks.com/topic/46561-printing-from-a-mysql-database/#findComment-226646 Share on other sites More sharing options...
tauchai83 Posted April 11, 2007 Share Posted April 11, 2007 please state your task 1st. Update, Delete, Add? to display from DB, just fetch the result using mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_row. your 1st task is to establish connection using mysql_connect, and select DB using mysql_select_db then query using mysql_query. If you don't understand the php manual, then only i post some code for you to see. Link to comment https://forums.phpfreaks.com/topic/46561-printing-from-a-mysql-database/#findComment-226655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.