more specifically.. you should have
| Code: |
$result = mysql_query($sql)
or die("Invalid query: " . mysql_error());
|
and while you are at it. please erase the contents of the files in your /banners directory, until you have added your own banners.
I have no problems with you using the script on an adult related web site, but certain advertisers don't want their ads shown on those types of sites and they are very vocal about it.
So for example, edit /banners/1.html and just erase everything, saving an empty file.
Later, you can plug in the HTML for your own banners.