Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10

Thread: in order

  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    in order

    Hey guys i have a database with names and webs site's related to the name.

    now i have a welcome page that i want to add a table with all the names and links..

    but i need it to show like

    code www... pics www.. and so on...
    forum www... movies www..


    how can i set my php echo's so it shows it like that?

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    So that it shows like what? Are you trying to say that you want to list links by category? What code do you have so far?
    Are you a Help Vampire?

  • #3
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts
    i have no code so far cause i was woundering if it was do able..

    cause usaly with the echo in html it shows from top to botom..

    but i need it to show side by side about 10 times then start another row..


    ddddd ddddd dddd dddd dddd
    ddddd ddddd dddd ddddd dddd
    ddddd dddddd......

  • #4
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    It can be done. It you can do it in straight HTML, you can do it through PHP.
    Are you a Help Vampire?

  • #5
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts
    ok.can i get some references to get it going?

  • #6
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts
    i got it going with this

    echo
    {
    display:inline;
    }

    echo "<span class='echo'>".$row['Nom']."</span>";

    it shows it in line .now is there a way to limit it ?like 10 in each row

  • #7
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    it shows it in line .now is there a way to limit it ?like 10 in each row
    Make a nested unordered list with 10 items in the inner set. Then set display:inline; to them.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #8
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts
    i will check that out.

    funny cause the inline works but the rest does not?

    echo {
    display: inline;
    font: "Arial Black", Gadget, sans-serif;
    font-size: 40px;

    echo '<a href="'. $row['Web'] .'" target="_blank" class="echo" > '.$row['Nom'].' </a>';

  • #9
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    Class selectors in CSS must be preceded by a dot.
    Code:
    .echo {
    Wrap your code in appropriate tags. It's much easier to read. The sticky at the top of the forum recommends this, and the editor form where you enter posts probably does, too.
    Are you a Help Vampire?

  • #10
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts
    oh! a dot...lol thx will do next time


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •