Hi
I'm getting mysql_fetch_array() expects parameter 1 to be resource, boolean,
I check the white space and maybe some can tell me what I did so I can corrrect the mistake. Thanks
<?php
session_start();
header("Cache-control: private");
require_once ('../include/init.php');
include_once("../ckeditor/ckeditor.php");?>
$page = $_GET['page'];
$sqlcats="SELECT * FROM pages WHERE pagename = '".$page."'";
//echo $sqlcats;
$rscats= mysql_query($sqlcats) ;
while($rowcats = mysql_fetch_array($rscats))
{
$thetext = $rowcats["editor1"];
$pagename = $rowcats["pagename"];
}
<html>
<head>
<title>ADMIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<style type="text/css">
<!--
.style3 {font-family: Arial, Helvetica, sans-serif;font-size: 16px;font-weight: bold;}
-->
</style>
</head>
<body>
<br>
<p align="center" class="style3">ADMIN</p>
<br>
<p align="center" class="style4">
<a href="index2.php">MAIN MENU</a>
<a href="logout.php">LOG OUT</a>
</p>
<? include("modifymenu.php");?>
<form action="../home.php" method="post" target="_blank">
<?php
$CKEditor->basePath = '/ckeditor/';
$CKEditor = new CKEditor();
$CKEditor->editor("editor1", $initialValue);
$initialValue = '<p>This is some <strong>sample text</strong>.</p>';
?>
<input type="submit" value="Submit"/>
<?
// SECURITY: You must explicitly enable this "connector". (Set it to "true").
$initialized ['Enabled'] = true ;
?>
</form>
</body>
</html>