Welcome to WebmasterWorld Guest from 18.104.22.168
So I'm new to PHP although I have a good base knowledge of how all of this stuff works and I installed a directory that consists of some simple php scripts and enters the info to a mysql database.
I am looking to install a banner rotator and have it installed on another inferior directory that is encoded in php as well.
Now the scripts for the directory were created by dB Masters Multimedia Directory and I found the appropriate place to insert the code from the banner rotator which uses phpadsnew and is quite awesome open source free ad server.
When I add the block of code for the ad server in the correct place all the stuff from the database (all links and categories from directory) disappears.
Anybody know what could make that happen?
So can anyone help? Make a suggestion?
This is the first major step in PHP and it seems so basic and small but I can't see what's going on.
[edited by: ergophobe at 8:45 am (utc) on May 28, 2005]
[edit reason] code dump snipped - see forum charter [/edit]
joined:Apr 25, 2002
Start by echoing out any queries you send as in
$q = "SELECT blah blah";
$r = mysql_query($q);
Now copy and paste the query into your mysql client and see if it works.
For more help, try this