Hi
edit_order.php
<?php
session_start();
if(!isset($_SESSION['admin'])){
echo "Only the admin can see this page";
header("Refresh: 3;url=login.php");
}else{
require("inc/config.php");
require("inc/header.php");
$id = $_GET['id'];
$sql = "SELECT * FROM serv WHERE id=$id";
$query = mysql_query($sql);
while($serv = mysql_fetch_object($query)){
$title = $serv->title;
$describtion = $serv->describtion;
$url = $serv->url;
$status = $serv->status;
}
?>
<center>
<form action="check_edit.php?id=$id" mehod="GET">
title : <input type="text" name="title" value="<?php echo $title; ?>"><br />
order : <textarea name="describtion" cols="50" rows="15"><?php echo $describtion; ?>