kevincon Posted June 26, 2009 Share Posted June 26, 2009 I'm using the query SELECT * FROM blog_comments WHERE c_id_1='$b_is_1' My problem is... $b_id_1 contains a set of numbers that are the exact same as the numbers on multiple rows in blog_comments, on the field c_id_1. When i use echo "<div>".$row["username"]."</div>"; It should show me every row with that i'm calling, but it only shows me one row. I want to be able to get info from multiple rows that share the same info on the field i'm calling. How can I do this? Quote Link to comment https://forums.phpfreaks.com/topic/163816-solved-same-content-in-multiple-rows/ Share on other sites More sharing options...
kevincon Posted June 26, 2009 Author Share Posted June 26, 2009 http://server.kevincon.com/ClanNV/blog/view.php?blog=2# I made the content into an array, the fields that need to match right now are c_id_1 and c_id_2 Quote Link to comment https://forums.phpfreaks.com/topic/163816-solved-same-content-in-multiple-rows/#findComment-864353 Share on other sites More sharing options...
fenway Posted June 27, 2009 Share Posted June 27, 2009 Show sample table rows. Quote Link to comment https://forums.phpfreaks.com/topic/163816-solved-same-content-in-multiple-rows/#findComment-864773 Share on other sites More sharing options...
kevincon Posted June 27, 2009 Author Share Posted June 27, 2009 I fixed it, There was a variable error in my "foreach". Quote Link to comment https://forums.phpfreaks.com/topic/163816-solved-same-content-in-multiple-rows/#findComment-864786 Share on other sites More sharing options...
fenway Posted June 28, 2009 Share Posted June 28, 2009 I fixed it, There was a variable error in my "foreach". Next time, you may want to consider posting a small code snippet that the rest of us might find helpful. Quote Link to comment https://forums.phpfreaks.com/topic/163816-solved-same-content-in-multiple-rows/#findComment-865053 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.