php table question...

Discussion in 'PHP' started by tptnyc, Jul 11, 2008.

  1. #1
    Does with php one has to use tables only or the Home page can be made with css <div></div>
     
    tptnyc, Jul 11, 2008 IP
  2. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    You can use any HTML code when you're working with PHP. PHP is a server processing language, it is seperate from the actual HTML code of the page, which allows you to use any HTML you want, tables or CSS divs.
     
    itcn, Jul 11, 2008 IP
  3. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #3
    Can use anything you like. Tables are common for tabular data like, I don't know, the results from a database maybe.
     
    shallowink, Jul 11, 2008 IP
  4. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #4
    PHP actually stands for Hypertext Preprocessor (which is odd, but let's leave it at that)

    so one of its core functionality is process HTML :)
     
    serialCoder, Jul 11, 2008 IP
  5. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #5
    PHP stands for (to be frustrating):

    PHP: Hypertext Preprocessor

    It's a recursive acryonym (think that's what its called, I'll be picked out on it no doubt if it isn't.)
     
    Danltn, Jul 12, 2008 IP
  6. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #6
    You can choose yourselve, if you like divs you use divs if you like tables you use tables.

    As writen above; CSS is not ment for tabulair data (wich tables are ment for)
     
    EricBruggema, Jul 12, 2008 IP
  7. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #7
    PHP doesn't care how you output it, it'll let you do it however you like.

    Dan
     
    Danltn, Jul 12, 2008 IP
  8. fallen

    fallen Well-Known Member

    Messages:
    162
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #8
    Actually to make it clear:
    PHP - generates HTML that is later displayed.
    So with it you can create tables or divs and then ready HTML is displayed on the browser.

    hope that explains...
     
    fallen, Jul 12, 2008 IP