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 Quote 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. Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.