أعيد محتوى الملف كونه لم يههر بشكل سليم
اقتباس:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body>
<?
require("includes/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassw ord) or die("Can't open connection to MySQL");
mysql_select_db($dbname) or die("Can't select database");
$query = "SELECT thread.title,thread.threadid FROM thread WHERE thread.forumid='23' ORDER BY thread.lastpost DESC LIMIT 1";
$tr = mysql_query($query) or die("MySQL reported this error while trying to retreive the info: ".mysql_error());
while ($threads = mysql_fetch_array($tr)) {
echo "$ansar<br>https://www.ansarsunna.com/vb/showthread.php?t=$threads[threadid]<br>$threads[title]"
}
?>
</body>
</html>
|