Results 1 to 4 of 4

Thread: real newbie PHP Q (resolved!)

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    real newbie PHP Q (resolved!)

    I've been experimenting with PHP and MySQL a bit but to make outputed pages look good requires tonnes of HTML code within the PHP script.

    It's getting really cumbersome and difficult to work out whats going on because of all the damn HTML code. Is there anywhere else I can put it, like in subs at the bottom of the script so I can print sections of HTML when nessecary?
    Last edited by chrisjk; Jan 5th, 2002 at 01:15 PM.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    meh, guess i'll have to make do with shoving it all in then...

  3. #3
    scoutt
    Guest
    yes chris you can.
    put thisin the top of your page.
    PHP Code:
    function start_tbl(){
    echo<<<myhtml

    regualar html in here, also can use variables like 
    $var

    myhtml;
       } 
    then jsut call it like this

    start_tbl();

    that is it. but you can call it anything you want.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    cheers! Exactly what I was after

Posting Permissions

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



Click Here to Expand Forum to Full Width