bassplaya4string Posted November 9, 2008 Share Posted November 9, 2008 This may sound uber n00b, BUT here it goes.... I get how to set a loop to pull ALL of the data in a table, but how would I pull just one field of data? All of the tuts I am seeing online only show how to loop through everything. Any help would be greatly appreciated! Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/131986-pulling-a-single-line-of-data-from-a-mysql-db/ Share on other sites More sharing options...
corbin Posted November 9, 2008 Share Posted November 9, 2008 http://dev.mysql.com/doc/refman/5.0/en/select.html If by 1 field you mean one column: SELECT column1 FROM table; If you mean one row: SELECT * FROM table LIMIT 1; Quote Link to comment https://forums.phpfreaks.com/topic/131986-pulling-a-single-line-of-data-from-a-mysql-db/#findComment-685825 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.