Hi there, for the life of me I can't work out what is wrong with this script, but when it runs I get this message.
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in....
<?
$q6 = "select * from banners where lang = \"$_SESSION[lang]\" and section = \"top\" ORDER BY RAND() limit 1";
$r6 = mysql_query($q6) or die(mysql_error(Error5));
while($a6 = mysql_fetch_array( $r6 ))
{
echo "$a6[content]";
}
?>
If anyone can help it would be greatly appreciated.