Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: coding help
05-20-2010, 11:29 PM #1
- Join Date
- May 2010
- Thanked 0 Times in 0 Posts
05-20-2010, 11:57 PM #2
05-21-2010, 12:24 AM #3
- Join Date
- Jan 2005
- Philadelphia, PA, USA
- Thanked 76 Times in 76 Posts
Yes, you can. However, this is really not an HTML/CSS issue. What I generally do when I am doing this is I write up my entire HTML page, style it, and then take that and apply PHP code to it. The way PHP works is it is interpreted (run) before the page is sent to the browser, and the result of running the PHP code is what is sent to the browser.
So, for example, I can take this basic HTML page:
<html> <head> <title>This is my site.</title> </head> <body> <p>Hello World!</p> </body> </html>
<html> <head> <title><?php print $title; ?></title> </head> <body> <p>Hello <?php print $userName; ?></p> </body> </html>
DanPHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Don't forget to save everyone time and mark your thread as Resolved :)
"Also note that it is your responsibility to die() if necessary."
DON'T USE THE MYSQL_ EXTENSION