Time2Dine.co.nz is Online Restaurant Booking
 
Elusion Electronic Cigarette
 New Zealand Restaurants Forum
Restaurant Forum | Contact Time2Dine | Book Online & Save | About Time2Dine

Go Back   New Zealand Restaurants & Food Forum > Search Engine Optimisation > Mysql howtos
Register

Reply
 
LinkBack Thread Tools
  #1  
Old 19th Feb 07, 02:54 AM
Junior Reviewer
 
Join Date: Feb 2007
Posts: 6
kisska is on a distinguished road
Default 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>

Last edited by T2DMan; 5th Aug 07 at 07:55 PM.
Reply With Quote
  #2  
Old 4th Aug 07, 02:33 PM
Junior Reviewer
 
Join Date: May 2007
Posts: 7
mac_jsn is on a distinguished road
Smile Get it solved from here

Hello kisska

I know a good resource of solving these types of issues.

http://www.techhelpformarketers.com



Hope it's helpful to you!



[mac]
Reply With Quote
  #3  
Old 6th Sep 10, 10:44 PM
Junior Reviewer
 
Join Date: Sep 2010
Posts: 2
ErikFox is on a distinguished road
Default

Its simple... every php code needs to be within the

Code:
<?php

?>
And the file needs to be saved in the .php format.
__________________
cloud hosting and virtual servers
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Questions about Seo Optimizing vBulletin. baerwurz SEO vBulletin 2 8th Sep 06 11:13 AM



Powered by: vBulletin Copyright ©2000 -2012, Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0
© 2010 Time2Dine