stewc Posted October 1, 2007 Share Posted October 1, 2007 Hi I have a database called CARS within it is a table called FORD which contains a field called SPEED. All I want to do is write some simple php code to retrieve the first entry in the field speed and print it to the screen. Can anyone help? I am just starting so any help would be great TIA Link to comment https://forums.phpfreaks.com/topic/71407-retrieving-data-from-a-table/ Share on other sites More sharing options...
fenway Posted October 1, 2007 Share Posted October 1, 2007 You'll need to connect to the db, issue a query, pull the recordset, then format it for output... there must be 100s of tutorials like this. Link to comment https://forums.phpfreaks.com/topic/71407-retrieving-data-from-a-table/#findComment-359428 Share on other sites More sharing options...
stewc Posted October 1, 2007 Author Share Posted October 1, 2007 I can connect to the database, issue the query just dont know how to output the data. Link to comment https://forums.phpfreaks.com/topic/71407-retrieving-data-from-a-table/#findComment-359513 Share on other sites More sharing options...
Barand Posted October 2, 2007 Share Posted October 2, 2007 try this. It got me started with php/mysql http://www.sitepoint.com/article/publishing-mysql-data-web Link to comment https://forums.phpfreaks.com/topic/71407-retrieving-data-from-a-table/#findComment-359723 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.