Hi again,
I am buiæding a CMS for my website and i have this page where I can edit the content of a page. This is the code:
<?php
error_reporting(E_ALL);
include "common_db.php";
db_connect('****');
mysql_select_db('****');
$user_query = mysql_query("SELECT * FROM `content` WHERE `page_id`='$id'");
$result = mysql_fetch_array($user_query);
$pageid = $result["page_id"];
$pagename = $result["page_name"];
$pagecontent = $result["page_content"];
$pageurl = $result["page_url"];
$pagemenu = $result["display_menu"];
?>
<html>
<body>
<FORM METHOD="POST" ACTION="./adminsubmitedit.php">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="20%">Page ID</td>
<td width="80%">
<INPUT TYPE="TEXT" NAME="pageid"
VALUE="<?php echo $pageid; ?>" SIZE="11"> - EKKI BREYTA!!!</td>
</tr>
<tr>
<td width="20%">Page Name</td>
<td width="80%"><INPUT TYPE="TEXT" NAME="pagename" VALUE="<?php echo $pagename; ?>"
SIZE="34"></td>
</tr>
<tr>
<td width="20%">Page content</td>
<td width="80%"><textarea rows="23" name="pagecontent" cols="62"><?php echo $pagecontent; ?></textarea></td>
</tr>
<tr>
<td width="20%">Page URL</td>
<td width="80%">
<INPUT TYPE="TEXT" NAME="pageurl" VALUE="<?php echo $pageurl; ?>"
SIZE="34"></td>
</tr>
<tr>
<td width="50%">Display Page link on Menu?</td>
<td width="50%"> <INPUT TYPE="TEXT" NAME="pagemenu" VALUE="<?php echo $pagemenu; ?>"
SIZE="34" ></td>
</tr>
</table>
<input type="submit" name="submit">
</form>
</body>
</html>
Problem is that the information doesn't show in the forms, and when I click submit, the data canðt be edited. Thanks for all your help!