June 11th, 2000, 06:37 AM
Join Date: Jun 2000
Location: Sydney, Australia
Time spent in forums: < 1 sec
Reputation Power: 14
1. well.. take a look at http://hotscripts.com/PHP/Scripts_and_Programs/
They've got a few ad management scripts there.. perhaps they can help you write your own?
You can use the mysql_query php function, but before you do that.. you will need to connect to the database, using mysql_connect and mysql_select_db.
An example would be,
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
$db = mysql_connect ("localhost","username", "password");
$result = mysql_fetch_array(mysql_query("SELECT * FROM index WHERE id = $id"));
DevShed and webmonkey's got a few tutorials that you can follow..