PDA

View Full Version : displaying database information.


Adam_C
07-24-2009, 06:46 PM
I have made this website: http://www.selfamusingstories.elementfx.com/ and on the index page it has taken information (with a LIMIT 10) but it looks really dull.

What I would like to do is to display it in a way that facebook or twitter does, however i would like to make it so that maybe i could make a div and then in that place tags to pull information for example i have added a picture of what this could look like.

any ideas?

thanks, Adam_C :)

edbr
07-25-2009, 03:29 AM
thats not so hard but im not clear what you want exactly. i think you mean something like

echo"<div class= \"your_class\">". $row['your_field'] . "</div>";

red values being yours of course

Adam_C
07-25-2009, 10:41 AM
thats not so hard but im not clear what you want exactly. i think you mean something like

echo"<div class= \"your_class\">". $row['your_field'] . "</div>";

red values being yours of course

thank you very much for your reply :) do i have to put this in 10 times or can i put a LIMIT 10 in there ?

Adam_C
07-25-2009, 12:16 PM
also how do i make it look more like my attached picture in the first post?

all i can really do is make it look like a line of writing, which looks boring compared to my initial design (attached picture) is there any way of making it look like my attached picture?

here is what it looks like at the moment: http://www.selfamusingstories.elementfx.com/index.php

thanks Adam_C :)