|
|
#1
| |||
| |||
|
I'm taking a PHP + mySQL class at school, and I wanted to ask some regular php coders out there about how you put php into a page. I know a small amount of php, enough to make just a simple database driven site. Every tutorial that I've learned from just slaps the php in where it needs to be used. An example would be this: CODE <?php $date = date("F d, Y H:i:s a"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>Comm393: </title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> </head> <body> <h1>Hello World</h1> <center><em><?php echo("$date") ?></em></center> </body></html> Last edited by T2DMan; 5th Aug 07 at 07:55 PM. |
|
#2
| |||
| |||
|
Hello kisska I know a good resource of solving these types of issues. http://www.techhelpformarketers.com Hope it's helpful to you! [mac] |
|
#3
| |||
| |||
|
Its simple... every php code needs to be within the Code: <?php ?> |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Some Questions about Seo Optimizing vBulletin. | baerwurz | SEO vBulletin | 2 | 8th Sep 06 11:13 AM |