myfahim Posted May 28, 2012 Share Posted May 28, 2012 Hi, According to my PHP code, if there is more than one result it displays all result's all field. But I need there will show only one or two field of each result. And after click one of them it will show it's all field. I am not a programmer, just do coding as I need with my little knowledge and help of forum. Please someone help me. Fahim Quote Link to comment https://forums.phpfreaks.com/topic/263271-regarding-mysql-query-with-php/ Share on other sites More sharing options...
smerny Posted May 28, 2012 Share Posted May 28, 2012 limit select * from table where foo='bar' limit 1 Quote Link to comment https://forums.phpfreaks.com/topic/263271-regarding-mysql-query-with-php/#findComment-1349222 Share on other sites More sharing options...
fenway Posted June 2, 2012 Share Posted June 2, 2012 limit select * from table where foo='bar' limit 1 Sounds like the OP is talking about fields, not records. Quote Link to comment https://forums.phpfreaks.com/topic/263271-regarding-mysql-query-with-php/#findComment-1350639 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.