N2ChristTheKing
01-21-2004, 03:28 PM
Moved Here, sorry mods, I didn't see this forum until after I posted.
------
Hey guys, I'm having trouble with a page I'm doing in PHP. I'm brand new to PHP and am trying to learn it but I have to finish this page quickly and I need some help.
The page is here:
http://www.kc-mtm.com/portfolio/ccwc04/ccwc.php
The PHP I modified from this thread:
http://www.htmlforums.com/showthread.php?s=&threadid=32068
Here is my full source:
http://www.kc-mtm.com/portfolio/ccwc04/ccwc.txt
http://www.kc-mtm.com/portfolio/ccwc04/preface.txt
Here's the cut down version:
<body>
<!--Background Images-->
<div ID="graphics">
<div ID="gr_top">
<img src="images/top.jpg">
</div>
<div ID="gr_bottom-left">
<img src="images/bottom-left.jpg">
</div>
<div ID="gr_video">
<?PHP
if (!$vidoedisplay){
print "<img src=\"images/video.jpg\">";
}else{
if ($preface == "300k"){
include ("/videos/qt/300k/preface.php");
}
?>
</div>
<div ID="gr_bottom">
<img src="images/bottom.jpg">
</div>
<div ID="gr_bottom-right">
<img src="images/bottom-right.jpg">
</div>
</div>
<!--/Background Images-->
<table ID="maintable">
<tr>
<td rowspan="3" class="video-title">Preface</td>
<td class="video-format">QuickTime:</td>
<td class="video-size">56k</td>
<td class="video-size">100k</td>
<td class="video-size"><a href="ccwc.php?videodisplay=yes&preface=300k">300k</a></td>
</tr>
<tr class="coming-soon">
<td class="video-format">Windows Media:</td>
<td class="video-size">56k</td>
<td class="video-size">100k</td>
<td class="video-size">300k</td>
</tr>
<tr class="coming-soon">
<td class="video-format">Real:</td>
<td class="video-size">56k</td>
<td class="video-size">100k</td>
<td class="video-size">300k</td>
<tr>
</table>
Here's the preface.php:
print "<embed src=\"videos/qt/300k/preface.mov\" height=\"336\" width=\"240\" autoplay=\"true\" controller=\"true\" kioskmode=\"true\" loop=\"false\">";
And the Parse Error:
Parse error: parse error in /home/kcmtm02/public_html/portfolio/ccwc04/ccwc.php on line 205
Can anyone help me figure out what I'm doing wrong and how I might fix it.
------
Hey guys, I'm having trouble with a page I'm doing in PHP. I'm brand new to PHP and am trying to learn it but I have to finish this page quickly and I need some help.
The page is here:
http://www.kc-mtm.com/portfolio/ccwc04/ccwc.php
The PHP I modified from this thread:
http://www.htmlforums.com/showthread.php?s=&threadid=32068
Here is my full source:
http://www.kc-mtm.com/portfolio/ccwc04/ccwc.txt
http://www.kc-mtm.com/portfolio/ccwc04/preface.txt
Here's the cut down version:
<body>
<!--Background Images-->
<div ID="graphics">
<div ID="gr_top">
<img src="images/top.jpg">
</div>
<div ID="gr_bottom-left">
<img src="images/bottom-left.jpg">
</div>
<div ID="gr_video">
<?PHP
if (!$vidoedisplay){
print "<img src=\"images/video.jpg\">";
}else{
if ($preface == "300k"){
include ("/videos/qt/300k/preface.php");
}
?>
</div>
<div ID="gr_bottom">
<img src="images/bottom.jpg">
</div>
<div ID="gr_bottom-right">
<img src="images/bottom-right.jpg">
</div>
</div>
<!--/Background Images-->
<table ID="maintable">
<tr>
<td rowspan="3" class="video-title">Preface</td>
<td class="video-format">QuickTime:</td>
<td class="video-size">56k</td>
<td class="video-size">100k</td>
<td class="video-size"><a href="ccwc.php?videodisplay=yes&preface=300k">300k</a></td>
</tr>
<tr class="coming-soon">
<td class="video-format">Windows Media:</td>
<td class="video-size">56k</td>
<td class="video-size">100k</td>
<td class="video-size">300k</td>
</tr>
<tr class="coming-soon">
<td class="video-format">Real:</td>
<td class="video-size">56k</td>
<td class="video-size">100k</td>
<td class="video-size">300k</td>
<tr>
</table>
Here's the preface.php:
print "<embed src=\"videos/qt/300k/preface.mov\" height=\"336\" width=\"240\" autoplay=\"true\" controller=\"true\" kioskmode=\"true\" loop=\"false\">";
And the Parse Error:
Parse error: parse error in /home/kcmtm02/public_html/portfolio/ccwc04/ccwc.php on line 205
Can anyone help me figure out what I'm doing wrong and how I might fix it.