Warning: mysql_query(): Access denied for user: 'apache@localhost' (Using password: NO) in /home/cgfxclub/domains/cgfxclub.com/public_html/news/read.php on line 6 Warning: mysql_query(): A link to the server could not be established in /home/cgfxclub/domains/cgfxclub.com/public_html/news/read.php on line 6 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cgfxclub/domains/cgfxclub.com/public_html/news/read.php on line 8 Warning: mysql_close(): no MySQL-Link resource supplied in /home/cgfxclub/domains/cgfxclub.com/public_html/news/read.php on line 20
It show that and my code is :
<?
include "http://www.cgfxclub.com/config.inc.php";
$id=$_GET['id'];
$sql = "SELECT * FROM news WHERE id='$id'";
$result = mysql_query($sql);
while ($rows = mysql_fetch_array($result)) {
?>
<table border=90% border=0 bgcolor=#E0E0E0>
<tr>
<td><center><?=$rows[titile]; ?></center></td>
</tr>
<tr>
<td><center><?=$rows[text]; ?></center></td>
</tr>
</table>
<?
}
mysql_close();
?>
help me plss
