Du får lige lidt mere! $sql = "SELECT * FROM sites WHERE accepted = 'yes' ORDER BY click_in DESC LIMIT $ranks"; $res = mysql_query($sql); $number = 1; while($out = mysql_fetch_array($res)) { IF($number%2) {
Det script jeg bruger til at oprette databasen med er: <?php include("config.php"); mysql_connect($conf['mysql_host'], $conf['mysql_user'], $conf['mysql_pass']); mysql_query("CREATE DATABASE " . $conf['mysql_db']); mysql_select_db($conf['mysql_db']); print "If you see any errors, you have not modyfied the config.php correctly<br><br>"; mysql_query(" CREATE TABLE sites ( ID int(11) NOT NULL auto_increment, mail text NOT NULL, name text NOT NULL, title text NOT NULL, pass text NOT NULL, banner text NOT NULL, url text NOT NULL, accepted enum('no','yes') NOT NULL default 'no', click_in int(11) NOT NULL default '0', click_out int(11) NOT NULL default '0', KEY ID (ID) ) TYPE=MyISAM;"); print "If no errors, this script completed the operation! Please read readme.txt for more instructions."; ?>
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.