Jump to content

[SOLVED] Question


Zepo.

Recommended Posts

Still says page cannot be found. Heres the code

<?php
/*Start the sesion*/
session_start(); 

/*Lets pull the data from the database*/
$result = mysql_query("SELECT * FROM news");
$news = mysql_fetch_array($result);

/*Check the sessions permissions*/
if (isset($_SESSION['name'])) {
if ($_SESSION['rights'] == 100){

if ($act == "editnews") {

echo "<div class='pagetitle'>News Manager</div>
<div style='margin:10px'>
<br />
<table cellpadding='4' cellspacing='0' border='0' align='center' width='95%' class='tborder' id='optionsform' >
<colgroup span='2'>
<col style='width:45%'></col>
<col style='width:55%'></col>
</colgroup>
<tr>
<td class='tcat' align='center' colspan='2'>
<b>Edit News</b>
</td>
</tr>";

while($news = mysql_fetch_array($result))
{
echo "
<tr valign='top'>
<td class='optiontitle'  colspan='2'><div>$news[title]</div></td>
</tr>
<tbody id='tbody_keywords'>
<tr valign='top'>
<td class='alt1'><div class='smallfont' >$news[news]</div><div align='right' style='float:right'>
<a href='./news.php?act=edit&id=$news[id]'><img src='./images/edit.gif' alt='Edit' border='0'></a> | 	<a href='./news.php?act=delete&id=$news[id]'><img src='./images/delete.gif' alt='Delete' border='0'></a></div></td>
</tr>";
}

echo "
</tbody>
</table>";
}
if ($_GET['act'] == 'edit' && !empty($_GET['id'])){
echo "TEST";
}

if ($_GET['act'] == 'delete' && !empty($_GET['id'])){
echo "DELETE";
}
}
}



?>

 

Webpage cannot be found.....

 

 

 

I think i solved it , sorry guys.

Link to comment
https://forums.phpfreaks.com/topic/57443-solved-question/#findComment-284214
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.