Uhm, Caleb's panel named simpleNEWS isn't out yet and you were posting in HIS thread about this error?
Can you post the link to the panel which you are using? :confused:
Printable View
Uhm, Caleb's panel named simpleNEWS isn't out yet and you were posting in HIS thread about this error?
Can you post the link to the panel which you are using? :confused:
Hes using mine, I think I know what the problem is let me check, I'll edit this post in a second.
EDIT:
Try that.PHP Code:<?php include 'connect.php'; ?>
<div id="top">
<img border="0" src="top_logo.jpg" width="288" height="131"></div>
<div id="fade">
<!-- Empty -->
</div>
<center>
Welcome to the Backend!<br />
<br />
<?php
if ($_SESSION['username'] && $_SESSION['level'] == 1 ) {
echo ("
<strong>Navigation</strong><br />
<br />
<a href=\"add_news.php\">Add An Article</a> <br />
<a href=\"logout.php\">Logout</a> <br />");
}
elseif ($_SESSION['username'] && $_SESSION['level'] == 2 ) {
echo ("
<strong>Navigation</strong><br />
<br />
<a href=\"add_news.php\">Add An Article</a> <br />
<a href=\"delete_news.php\">Delete An Article</a> <br />
<a href=\"register_account.php\">Create A New User</a> <br />
<a href=\"/upload/backend.php\">Acsept Images</a> <br />
<a href=\"logout.php\">Logout</a> <br />");
}
else {
echo ("Please login");
}
php?>
</center>
</div>
<p align="center"> </p>
</body></html>
Yh tom its your i think.. can u help plz
Its moved and it says this at the top of ma page now
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamie/public_html/backend/files/index.php:2) in /home/jamie/public_html/backend/files/connect.php on line 2
Okay...
So place this at the very top of the page, above everything:
And then heres the code you had before but with out the include to the connect, place it where you want:PHP Code:<?php include 'connect.php'; ?>
PHP Code:<div id="top">
<img border="0" src="top_logo.jpg" width="288" height="131"></div>
<div id="fade">
<!-- Empty -->
</div>
<center>
Welcome to the Backend!<br />
<br />
<?php
if ($_SESSION['username'] && $_SESSION['level'] == 1 ) {
echo ("
<strong>Navigation</strong><br />
<br />
<a href=\"add_news.php\">Add An Article</a> <br />
<a href=\"logout.php\">Logout</a> <br />");
}
elseif ($_SESSION['username'] && $_SESSION['level'] == 2 ) {
echo ("
<strong>Navigation</strong><br />
<br />
<a href=\"add_news.php\">Add An Article</a> <br />
<a href=\"delete_news.php\">Delete An Article</a> <br />
<a href=\"register_account.php\">Create A New User</a> <br />
<a href=\"/upload/backend.php\">Acsept Images</a> <br />
<a href=\"logout.php\">Logout</a> <br />");
}
else {
echo ("Please login");
}
php?>
</center>
</div>
<p align="center"> </p>
</body></html>
Ty but when i edit the font it says this
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamie/public_html/backend/index.php:1) in /home/jamie/public_html/backend/files/connect.php on line 2
News
Test - id:3
Enter your article here...kk
Poested By: admin
whats happend.. and how do i remver the ID aswell...
thats the code..PHP Code:<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
<?php include 'files/connect.php';
echo ("<strong>News</strong><br /><br />");
$result =
mysql_query("select * from news order by id desc");
while($row = mysql_fetch_array($result))
{
$title=$row["title"];
$user=$row["by"];
$body=$row["body"];
$id=$row["id"];
echo
"<strong>$title</strong> - id:<italic>$id</italic><br />
$body<br />
Poested By: $user<br />
<br />";
}
php?>
You still haven't moved the include.
Use that ^PHP Code:<?php include 'files/connect.php'; ?>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
<?php
echo ("<strong>News</strong><br /><br />");
$result =
mysql_query("select * from news order by id desc");
while($row = mysql_fetch_array($result))
{
$title=$row["title"];
$user=$row["by"];
$body=$row["body"];
$id=$row["id"];
echo
"<strong>$title</strong> <br />
$body<br />
Poested By: $user<br />
<br />";
}
php?>
Ty +rep