I am working on a review management system in which I am getting user id in the database from which I have to retrieve the data of the user like the name which will be shown in the view. For example if we have 10 comments added in the database with their publisher’s user id we will have to get their name and show them simultaneously before the review.
I am using foreach loop in which every review is shown but how can I display the publishers name on the review block. For example: – -> Publish date -> Publisher’s Name -> Review
So here I am not able to show the publisher’s name, I have tried doing it with foreach but it display all the names in that column where as I have to show a particular name of one publisher by the id which has been entered in the database while writing the review
: – Result Photo
I have attached the image in that you can see that i have displayed all the reviews but when I am trying to display the name of the publisher it will show all the names
]
Here is the view page code: –
Kindly Help me resolve this issue !!
I want to display the name of the publishers before the review Kindly Help me with that
3