SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-12-2007, 09:12 AM
User 4 User 4 is offline
SEO Junior
 
Join Date: Jan 2007
Posts: 9 User 4 is on a distinguished road
Question(s) for PHP Pros

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>

__________________
Dell Coupons[/ul] [url=http://www.movingoncourses.com]English course in summer
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 05:14 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.