Andrius Posted December 2, 2006 Share Posted December 2, 2006 [code] <? session_start(); # 7 if (@$_SESSION['auth'] != "yes") # 9 { header("Location: Login.php"); exit(); }?><!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><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Live Streaming Concerts and MORE!</title><style type="text/css"><!--body,td,th { color: #FFFFFF;}body { background-color: #000000; background-image: url(Images/bg_main.gif); background-repeat: repeat-x; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}a:link { color: #FFFF00; text-decoration: none;}a:visited { color: #FFCC00; text-decoration: none;}a:hover { text-decoration: underline;}a:active { text-decoration: none;}.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold;}.style2 {color: #FF0000}.style3 {color: #000000}--></style></head><body><div align="center"> <table width="1000" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> </td> <td width="102" height="163"><img src="Images/1.gif" width="102" height="163" /></td> <td width="482" height="163"><img src="Images/2.gif" width="482" height="163" /></td> <td width="233" height="163"><img src="Images/3.gif" width="233" height="163" /></td> <td width="117" height="163"><img src="Images/4.gif" width="117" height="163" /></td> <td> </td> </tr> <tr> <td> </td> <td width="102" height="77"><img src="Images/5.gif" width="102" height="77" /></td> <td background="Images/6_bg.gif"><div align="center"><img src="Images/banner_top.jpg" width="468" height="60" /></div></td> <td width="233" height="77"><img src="Images/7.gif" width="233" height="77" /></td> <td width="117" height="77"><img src="Images/8.gif" width="117" height="77" /></td> <td> </td> </tr> <tr> <td width="32" height="40"><img src="Images/9.gif" width="32" height="40" /></td> <td width="102" height="40"><img src="Images/10.gif" width="102" height="40" /></td> <td width="482" height="40"><img src="Images/11.gif" width="482" height="40" /></td> <td width="233" height="40"><img src="Images/12.gif" width="233" height="40" /></td> <td width="117" height="40"><img src="Images/13.gif" width="117" height="40" /></td> <td width="34" height="40"><img src="Images/14.gif" width="34" height="40" /></td> </tr> <tr> <td width="32" height="80"><img src="Images/15.gif" width="32" height="80" /></td> <td width="102" height="80"><img src="Images/16.gif" width="102" height="80" /></td> <td height="80" colspan="2"><img src="Images/17.gif" width="715" height="80" /></td> <td width="117" height="80"><img src="Images/18.gif" width="117" height="80" /></td> <td width="34" height="80"><img src="Images/19.gif" width="34" height="80" /></td> </tr> <tr> <td height="100%" background="Images/20_runner_BG.gif"> </td> <td height="100%" valign="top"><div align="right"><img src="Images/banner_left.jpg" width="100" height="487" /></div></td> <td height="100%" colspan="2" valign="top" background="Images/bg_inner.gif"><div align="center"><br /> <table width="497" border="0" cellspacing="0" cellpadding="1"> <tr> <td bgcolor="#FFFFFF"><div align="center"> <table width="495" border="0" cellspacing="0" cellpadding="2"> <tr> <td bgcolor="#191919"><div align="center"><a href="http://www.getliveevents.com/Admin_index.php"><img src="Images/admin_main.jpg" alt="Admin" width="495" height="82" border="0" /></a></div></td> </tr> <tr> <td height="20" bgcolor="#666666"><div align="center" class="style1">Featured Show Editor </div></td> </tr> <tr> <td height="20" valign="middle" bgcolor="#363636"> <div align="center"> <? echo "<form action='' method='post'>"; $username = "55555";$password = "55555";$database = "55555";$host = "55555";mysql_connect($host,$username,$password);@mysql_select_db($database) or die("Unable to select database"); $query = " SELECT * FROM Featured ";$result = mysql_query($query);$num = mysql_numrows($result);mysql_close();// Check if the news item actually exists!if(!empty($num)){ $subject = mysql_result($result,0,"f_subject"); $body = mysql_result($result,0,"f_body"); $cam_url = mysql_result($result,0,"f_cam_url"); $time = mysql_result($result,0,"f_time"); $image = mysql_result($result,0,"f_image"); $status = mysql_result($result,0,"status"); echo " <table width='95%' border='0' cellspacing='0' cellpadding='2'> <tr> <td width='37%' class='style1'><div align='right'>Feature Name </div></td> <td width='63%'><input name='subject' type='text' id='subject' value='$subject' size='45' maxlength='200' /></td> </tr> <tr> <td valign='top' class='style1'><div align='right'>Description of Show </div></td> <td><textarea name='textarea' cols='42' rows='5'>$body</textarea></td> </tr> <tr> <td class='style1'><div align='right'>Feature Cam URL </div></td> <td><input name='cam_url' type='text' id='cam_url' value='$cam_url' size='45' maxlength='200' /></td> </tr> <tr> <td class='style1'><div align='right'>Scheduled Showtime</div></td> <td><input name='time' type='text' id='time' value='$time' size='45' maxlength='200' /></td> </tr> <tr> <td class='style1'><div align='right'>Image URL </div></td> <td><input name='image' type='text' id='image' value='$image' size='45' maxlength='200' /></td> </tr> <tr> <td class='style1'><div align='right'>Show Status 1=on 0=off </div></td> <td><input name='status' type='text' value='$status' size='4' maxlength='1' /></td> </tr> <tr> <td></td> <td><input type='submit' name='Submit' value='Click to Update' /></td> </tr></table> </form>"; ?> </div> </td> </tr> <tr> <td height="20" bgcolor="#FFFF00"><div align="center" class="style1"><span class="style3">SHOW CURRENT STATUS :</span> <span class="style2">OFFLINE </span></div></td> </tr> </table> </div></td> </tr> </table> <br /> <br /> </div></td> <td height="100%" valign="top"><div align="right"><img src="Images/banner_right.jpg" width="100" height="487" /></div></td> <td height="100%" background="Images/21_runner_BG.gif"> </td> </tr> </table></div></body></html>[/code] Quote Link to comment Share on other sites More sharing options...
AndyB Posted December 2, 2006 Share Posted December 2, 2006 Your error message means that somewhere in all that you have forgotten to close a php loop. Look for a missing [b]}[/b] closing curly brace. Quote Link to comment Share on other sites More sharing options...
jsladek Posted December 2, 2006 Share Posted December 2, 2006 put a [b]}[/b] in front of the [b]?>[/b][code] </form>"; ?>[/code][code] </form>"; } ?>[/code] Quote Link to comment Share on other sites More sharing options...
Andrius Posted December 2, 2006 Author Share Posted December 2, 2006 huge help.. it's always the little tiny errors that get me like that.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.