Changing a php "echoed" div attribute with php

Posted by Zakaria on Stack Overflow See other posts from Stack Overflow or by Zakaria
Published on 2010-03-18T16:21:01Z Indexed on 2010/03/18 16:31 UTC
Read the original article Hit count: 219

Filed under:
|
|
|

Hi everybody,

I'm using PHP to echo a content stored on my database. The content is a DIV carrying any type of data. The problem is that I don't know the ID and I have some problems with these DIVs if I try to display them more that once.

So, the idea is to modify the DIV id each time I'd like to display them. Something like this:

<?php modify_div_id($data,"id-456"); ?>

Is there a solution for this problem? Thank you very much, regards.

© Stack Overflow or respective owner

Related posts about php

Related posts about dom