September 11, 2005
With a URL Rotator you can advertise one URL, and spread the traffic over multiple sites. Or if you have a database of websites, you could make a "Random Site" link - a fun thing to use with blogs. The Code <? $global_dbh = mysql_connect("localhost","username","password"); mysql_select_db("mydatabasename", $global_dbh); $query = "SELECT * FROM `urls` ORDER BY [...]
Read the full article →
September 10, 2005
So you've worked hard on your website, and now you want to rotate banners on your website and generate some cash. It's time for a PHP Banner Rotator! This code sample assumes you have a table named "banners" with at least two fields "SiteURL" and "BannerURL". Which, shouldn't need explaination as to what they are. [...]
Read the full article →