Jump to content

I think its bad syntax or something, but my page wont show up.


Recommended Posts

Hewp me pwease :(

 

this page won't even load:

<html>
<title>TLS-3 Admin :: Insert Home-Blog Entry</title>


<body  bgcolor="#000000">
<p>Hi</p>
<table width="900" align="center" border="0">
<tr>
<td width="100%" height="133">
<img src="top.gif" width="900" height="133"></td>
</tr>
<tr>
<td width="100%" height="30" bgcolor="#333333">
<font color="#FFFFFF" face="Bell MT, Bahtang, Helvetica"><? include 'bar.php'; ?></font>

</td>
</tr>
<tr>
<td width="100%" bgcolor="555565">
<?php

include 'dbs.php';

?>
<?php
if (isset($_SESSION['user']))
{
if (($_SESSION['lvl']) >= "80")
{
?>
<table border="0">
<tr>
<td>


<font face="Arial, Helvetica"><h1>Blog Entry
<hr width="300" color="white" align="left"></h1></font><br>
<table>
<tr>
<td width="17">
&nbsp
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="504" align="left">
  <tr>
   <td><img src="images/spacer.gif" width="45" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="226" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="233" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  <tr>
   <td colspan="3"><img name="art_r1_c1" src="images/art_r1_c1.png" width="504" height="11" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="11" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="art_r2_c1" src="images/art_r2_c1.png" width="45" height="26" border="0" alt=""></td>
   <td valign="top" bgcolor="#999999"><p style="margin:0px">
<b>
<font size="+1" face="Century Gothic, Arial, Comic Sans MS, Helvetica">Insert Blog Entry</font></b></p></td>
   <td><img name="art_r2_c3" src="images/art_r2_c3.png" width="233" height="26" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="26" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="art_r3_c1" src="images/art_r3_c1.png" width="45" height="17" border="0" alt=""></td>
   <td colspan="2"><img name="art_r3_c2" src="images/art_r3_c2.png" width="459" height="17" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="17" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="3" background="images/art_r4_c1.png">
<table width="464" border="0" align="center">
   <tr>

<td>
   <font face="Verdana, Helvetica, Trebuchet MS, Comic Sans MS, Arial">

Insert new entry:<br>
<form method="post" action="admin_homeblog_insert.php">
Title: <input type="text" name="title"><br>
Article: <br>
<textarea cols="40" rows="20" name="article">
Don't make posts too long, or the title too long, or it will screw the home page up. 
</textarea>
<br>    <input type="submit" value="Post"><input type="reset" value="Clear">

</form>
<?php


if (isset($_POST['article']) && isset($_POST['title']))
{
$bsql = "INSERT INTO homeblog (ID, title, article, posted_by, date_posted) VALUES (NULL, '$btitle', '$barticle', '$_SESSION['user']', NOW())";
mysql_query($bsql) or die('Post Failed'); 
echo '<br><hr>Posted!';
}

?>
</font>
</td>
   </tr>
   </table>
</td>
   <td><img src="images/spacer.gif" width="1" height="39" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="3"><img name="art_r5_c1" src="images/art_r5_c1.png" width="504" height="41" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="41" border="0" alt=""></td>
  </tr>
</table><?php 


}else{
echo 'Now you know you're not a high enough level to access this, so don't even try it >_>.';
}
}else{
echo 'Now you know you're not a high enough level to access this, so don't even try it >_>.';
}
?></td></tr></table>
</td>
<td width="20">
&nbsp
</td>
<td width="310" align="right" valign="top">
<? include 'side.php'; ?>


</td>
</tr>
</table>


</td>

</tr>


</table>



</body>
</html>

 

 

<?php
if (isset($_SESSION['user']))
{
if (($_SESSION['lvl']) >= "80")
{
?>

unclosed IFs

 

<?php
}else{
echo 'Now you know you're not a high enough level to access this, so don't even try it >_>.';
}
}else{
echo 'Now you know you're not a high enough level to access this, so don't even try it >_>.';
}
?>

unescaped single quotes

i changed it to

}else{
echo "Now you know you are not a high enough level to access this, so don't even try it.";
}
}else{
echo "Now you know you are not a high enough level to access this, so don't even try it.";
}

and it still won't work :(

<?php
if (isset($_SESSION['user']))
{
if (($_SESSION['lvl']) >= "80")
{
?>

unclosed IFs

I think they're closed.

 

marklarah, please try this:

<html>
<title>TLS-3 Admin :: Insert Home-Blog Entry</title>


<body  bgcolor="#000000">
<p>Hi</p>
<table width="900" align="center" border="0">
<tr>
<td width="100%" height="133">
<img src="top.gif" width="900" height="133"></td>
</tr>
<tr>
<td width="100%" height="30" bgcolor="#333333">
<font color="#FFFFFF" face="Bell MT, Bahtang, Helvetica"><? include 'bar.php'; ?></font>

</td>
</tr>
<tr>
<td width="100%" bgcolor="555565">
<?php

include 'dbs.php';

?>
<?php
if (isset($_SESSION['user']))
{
if (($_SESSION['lvl']) >= 80)
{
?>
<table border="0">
<tr>
<td>


<font face="Arial, Helvetica"><h1>Blog Entry
<hr width="300" color="white" align="left"></h1></font><br>
<table>
<tr>
<td width="17">
&nbsp
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="504" align="left">
  <tr>
   <td><img src="images/spacer.gif" width="45" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="226" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="233" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  <tr>
   <td colspan="3"><img name="art_r1_c1" src="images/art_r1_c1.png" width="504" height="11" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="11" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="art_r2_c1" src="images/art_r2_c1.png" width="45" height="26" border="0" alt=""></td>
   <td valign="top" bgcolor="#999999"><p style="margin:0px">
<b>
<font size="+1" face="Century Gothic, Arial, Comic Sans MS, Helvetica">Insert Blog Entry</font></b></p></td>
   <td><img name="art_r2_c3" src="images/art_r2_c3.png" width="233" height="26" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="26" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="art_r3_c1" src="images/art_r3_c1.png" width="45" height="17" border="0" alt=""></td>
   <td colspan="2"><img name="art_r3_c2" src="images/art_r3_c2.png" width="459" height="17" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="17" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="3" background="images/art_r4_c1.png">
<table width="464" border="0" align="center">
   <tr>

<td>
   <font face="Verdana, Helvetica, Trebuchet MS, Comic Sans MS, Arial">

Insert new entry:<br>
<form method="post" action="admin_homeblog_insert.php">
Title: <input type="text" name="title"><br>
Article: <br>
<textarea cols="40" rows="20" name="article">
Don't make posts too long, or the title too long, or it will screw the home page up. 
</textarea>
<br>    <input type="submit" value="Post"><input type="reset" value="Clear">

</form>
<?php


if (isset($_POST['article']) && isset($_POST['title']))
{
$bsql = "INSERT INTO homeblog (ID, title, article, posted_by, date_posted) VALUES (NULL, '$btitle', '$barticle', '{$_SESSION['user']}', NOW())";
mysql_query($bsql) or die('Post Failed'); 
echo '<br><hr>Posted!';
}

?>
</font>
</td>
   </tr>
   </table>
</td>
   <td><img src="images/spacer.gif" width="1" height="39" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="3"><img name="art_r5_c1" src="images/art_r5_c1.png" width="504" height="41" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="41" border="0" alt=""></td>
  </tr>
</table><?php 


}else{
echo 'Now you know you\'re not a high enough level to access this, so don\'t even try it >_>.';
}
}else{
echo 'Now you know you\'re not a high enough level to access this, so don\'t even try it >_>.';
}
?></td></tr></table>
</td>
<td width="20">
&nbsp
</td>
<td width="310" align="right" valign="top">
<? include 'side.php'; ?>


</td>
</tr>
</table>


</td>

</tr>


</table>



</body>
</html>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.