PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
echo the query and run it and see if its returning any rows. if it returns no rows it wont return a error, but you can use mysql_num_rows() to see how many returned....
include('config.inc.php');
$id = $_GET['p'];
mysql_connect($dblocal, $dbuser, $dbpassword);
mysql_select_db($database) or die( "Unable to select database");
$query = "Select * From rr_posts Where id = '$id'";
$result = mysql_query($query);
$err1=mysql_error(); echo "<br />#err1"; // look for any error DURING execution... sometimes not visible when taking your command out and executing it directly
$info = mysql_fetch_array($result);
$err2=mysql_error(); echo "<br />$err2"; // same as above
$pid=$info['id'];
$title=$info['title'];
$content=$info['content'];
$date=$info['date'];
$cata=$info['cat'];