|
-
Jan 2nd, 2002, 05:20 PM
#1
Thread Starter
PowerPoster
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.
-
Jan 2nd, 2002, 08:59 PM
#2
Thread Starter
PowerPoster
meh, guess i'll have to make do with shoving it all in then...
-
Jan 3rd, 2002, 12:30 AM
#3
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.
-
Jan 4th, 2002, 08:10 PM
#4
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|