Hi Guys,
Hope this is the right place to make this post. If not sorry.
I am trying to help a friend out who has a parse error appearing on one of her web pages.
Any help to get the page up and running again would be greatly appreciated.
I have included the complete page code incase there are multipul errors that require attention.
Thank you in advance.
Error Reads: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/content/r/k/o/rkowitzke/html/greetings.php on line 123
The complete code for the page follows:<?php
require ("ccgconfig.php");
require ("dbconfig.php");
$imagepath=$dir_greeting_images;
$result=mysql_query("SELECT * FROM ccg_greetings ORDER BY ccg_greetings.greeting ASC");
while($row = mysql_fetch_array($result))
{
$tmp_array[]=$row['uid'].":".$row['item'].":".$imagepath.$row['image'].":".$row['greeting'].":".$row['price'];
}
mysql_close($con);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Classy Cork Gifts - Wine Bottle Greetings</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Script Begin
function check_form(amt, iid, fn) {
//alert(document.forms[fn].size.length);
if((isNaN(amt)) || (amt=="")){
alert("You must input a number in the quantity field.¥n¥nPlease reenter the quantity. Thank you.");
document.forms[fn].quantity.focus();
document.getElementById(iid).style.border='2px solid red';
return false;
}
else{
if(!confirm("You entered a quantity of: "+amt+"¥t¥t¥n¥nIs this the correct amount?")){
return false;
}
else{
return true;
}
}
}
// Script End -->
</SCRIPT>
<script src="script/thumbnailviewer.js" type="text/javascript"></script>
<link rel="stylesheet" href="style/thumbnailviewer.css" type="text/css">
<LINK REL="StyleSheet" TYPE="text/css" HREF="style/classycork.css">
<!--[if IE]>
<style type="text/css" media="screen">
#v_mnu_01 ul,#v_mnu_01 ul li a{ height: 1%}
</style>
<![endif]-->
</HEAD>
<BODY LEFTMARGIN="0" MARGINWIDTH="0" TOPMARGIN="0" MARGINHEIGHT="0" STYLE="background: url(images/classycorkbg.jpg) #FFFFFF;">
<TABLE ALIGN="center" WIDTH="850" BORDER="0">
<TR>
<TD COLSPAN="2">
<IMG SRC="images/topbanner.jpg" BORDER="0" WIDTH="850" HEIGHT="106" ALIGN="left">
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<div class="h_mnu_01">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="wineglasses.php">Wine Glasses</a></li>
<li><a href="greetings.php" class="selected">Wine Bottle Greetings</a></li>
<li><a href="nailfiles.php">Glass Nail Files</a></li>
<li><a href="events.php">Upcoming Events</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="shopcart.php">Shopping Cart</a></li>
</ul>
</div>
</TD>
</TR>
<TR>
<TD WIDTH="625" VALIGN="top" STYLE="background-color:#FFFFFF; background-image: url(images/classycorksml.jpg); background-position: right top; background-repeat: no-repeat; border-left: 3px solid #571d36; border-right: 3px solid #571d36; border-bottom: 3px solid #571d36;"><BR><BR>
<IMG SRC="images/sm-greeting.jpg" BORDER="0" WIDTH="400" HEIGHT="133" HSPACE="20"><BR><BR><CENTER><SPAN CLASS="normaltext">Special Prices for Wine Bottle Greetings: $7.99 each or 3 for $20</SPAN></CENTER><BR><BR>
<?php
$pagenumber=$_GET['page'];
$perpage=6;
if($pagenumber>0){
$end = $pagenumber * $perpage;
$start = $end - $perpage;
}
else{
$start = 0;
$end = $perpage;
$firstpage = 1;
}
$frmcnt=0;
for($x=$start;$x<$end;$x++){
$iteminfo=explode(":", $tmp_array[$x]);
if($tmp_array[$x]){
echo "<FORM NAME='frm$x' ACTION='processitem.php' METHOD='POST' onSubmit='return check_form(frm$x.quantity.value, frm$x.amt$x.id, $frmcnt)'>";
echo '<TABLE ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="catalog_block">
<TR>
<TD HEIGHT="20" CLASS="header_text">'.$iteminfo[1].'</TD>
<TD CLASS="header_text">Price</TD>
<TD CLASS="header_text">Quantity</TD>
<TD CLASS="header_text" ALIGN="left"> </TD>
</TR>
<TR>
<TD CLASS="text_content" ALIGN="center">
<A HREF="'.$iteminfo[2].'" REL="thumbnail"><IMG SRC="'.$iteminfo[2].'" BORDER="0" WIDTH="250" CLASS="catalog_image"></A><BR><BIG>'.$iteminfo[3].'</BIG>
</TD>';
echo '<TD CLASS="text_content" ALIGN="right" VALIGN="top" style="line-height: 19px;padding-top: 12px;">$'.$iteminfo[4];
echo '</TD>
<TD CLASS="text_content" ALIGN="center" VALIGN="top">
<INPUT ID="amt'.$x.'" TYPE="text" NAME="quantity" MAXLENGTH="5" CLASS="quantity_text" onKeydown="document.getElementById(\'amt'.$x.'\').style.border=\'1px solid #997368Â¥'">
</TD>
<TD CLASS="text_content" ALIGN="center" VALIGN="top">';
echo '<INPUT TYPE="hidden" NAME="uid" VALUE="'.$iteminfo[0].'">';
echo '<input type="submit" name="submit" class="button_addtocart" value="Add to Cart" title=" Add to Cart ">
</TD>
</TR>
</TABLE></FORM>';
$frmcnt++;
}
}
$frmcnt=0;
$totalimg = count($tmp_array) / $perpage;
$totalimg = ceil($totalimg);
echo "<P ALIGN='center' CLASS='normaltext'>Pages: ";
for($i=1;$i<=$totalimg;$i++){
if($pagenumber==$i || $firstpage==1){
$firstpage = 0;
echo "<B CLASS='pageoff'>$i</B>";
}
else{
echo "<A HREF='greetings.php?page=$i' CLASS='pageon'>$i</A>";
}
}
echo "</P><BR><BR><BR>";
?>
</TD>
<TD width="225" VALIGN="top">
<FONT FACE="verdana" SIZE="+1" COLOR="#FFFFFF">Wine Greeting FAQ</FONT><BR><BR>
<P STYLE="text-align: justify" CLASS="nailfilefaqQ">
Do they fit on all bottles?
</P>
<P STYLE="text-align: justify" CLASS="nailfilefaqA">
Yes. OverLeTop! fits on most beverage bottles. They are designed for wine however.
</P>
<HR WIDTH="80%" SIZE="1" NOSHADE COLOR="#FED4E7">
<P STYLE="text-align: justify" CLASS="nailfilefaqQ">
Do you create custom sayings for stores?
</P>
<P STYLE="text-align: justify" CLASS="nailfilefaqA">
Yes. Minimum amounts apply. You may contact Classy Cork.
</P>
<HR WIDTH="80%" SIZE="1" NOSHADE COLOR="#FED4E7">
<P STYLE="text-align: justify" CLASS="nailfilefaqQ">
How do they work?
</P>
<P STYLE="text-align: justify" CLASS="nailfilefaqA">
Simply place over bottle spout, that's it!
</P>
<HR WIDTH="80%" SIZE="1" NOSHADE COLOR="#FED4E7">
<P STYLE="text-align: justify" CLASS="nailfilefaqQ">
What do you mean magnetic?
</P>
<P STYLE="text-align: justify" CLASS="nailfilefaqA">
There is a standard craft magnet attached to the back. When it's off the bottle, it's on the fridge!
</P>
<HR WIDTH="80%" SIZE="1" NOSHADE COLOR="#FED4E7">
</TD>
</TR>
</TABLE>
<TABLE ID="menu_bottom" BORDER="0" ALIGN="center">
<TR>
<TD ALIGN="center">
<a href="index.php" CLASS="bottomlink">Home</a> |
<a href="wineglasses.php" CLASS="bottomlink">Wine Glasses</a> |
<a href="greetings.php" CLASS="bottomlink">Wine Bottle Greetings</a> |
<a href="nailfiles.php" CLASS="bottomlink">Glass Nail Files</a> |
<a href="events.php" CLASS="bottomlink">Upcoming Events</a> |
<a href="contact.php" CLASS="bottomlink">Contact Us</a> |
<a href="shopcart.php" CLASS="bottomlink">Shopping Cart</a>
</TD>
</TR>
</TABLE>
<P ALIGN="center" CLASS="smalltext">ゥ Classy Cork Gifts - 2010</P>
</BODY>
</HTML>