I would like to display a group of elements in a row in php from mysql database. I already did it, but my data appears in one long column. I would like every new element to appe
There are few issues with your code, such as:
while() loop.You're using the same div ids, element1 and content1 for all of your table rows. Use class instead. However, based on your question,
I would like every new element to appear one next to the other.
You can use the id attributes there, but you have to take the entire out of the ...
while() loop. And of course, change id="hovers" to class="hovers" and the associated CSS accordingly.
So the solution code would be like this:
= $product['title']; ?>
= $product['description']; ?>
From OP's comment,
I am trying to have 3 interviews in a row and several rows with interviews.
The solution would be to have three table cells in each row,
';
}
++$counter;
?>
= $product['title']; ?>
= $product['description']; ?>