Array in a PHP mosaic

Asked

Viewed 64 times

0

I have a mosaic mounted in html and css, what I need is to assemble an array bringing the last posts of the bank, and list in it, going through all the Divs in sequence, I always programmed an array for a single DIV, but this time it is more of a div with fixed sizes already, in this case I am using PHP...

for example the mosaic would look something like this :

<div id="1" width="200"><p>Postagem 1 dia 22/01/2001</p></div>

<div id="2" width="50"><p>Postagem 2 dia 27/02/2001</p></div>

<div id="3" width="100"><p>Postagem 3 dia 30/03/2001</p></div>
  • Hello @ricksk. For the community to help you, it’s important to provide examples and make clear the question/problem, with relevant code snippets.

  • 1

    You can start by making the [tour] through the website and read the [Ask] guide. Your question, the way it is doesn’t make much sense and it is impossible to help you. Please edit your question and add the code you are using and describe the problem better, including also the language used in the question tags.

  • It’s very confusing. You want to assemble an array in that language?

  • is in PHP, sorry !

  • You need to show how the database information comes in. The question has to be as clear as possible. = ) Hug

  • you are using mysqli or PDO?

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.