'; $_SESSION['switchcss']=$stylesheet; break; case 'yellow': $stylesheet = ''; $_SESSION['switchcss']=$stylesheet; break; case 'coffee': $stylesheet = ''; $_SESSION['switchcss']=$stylesheet; break; // Our default stylesheet default: $stylesheet = ''; $_SESSION['switchcss']=$stylesheet; } } unset($error_msg); // Include ezSQL core include_once "scripts/shared/ez_sql_core.php"; // Include ezSQL database specific component (in this case mySQL) include_once "scripts/ez_sql_mysql.php"; $db->hide_errors(); // CODE VALIDATOR if(count($_POST)>0) { if(isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] != $_POST['keystring']) { $error_msg = "Le texte de contrôle est incorrect. Veuillez réessayer."; } unset($_SESSION['captcha_keystring']); if(empty($_POST['solution'])) { $error_msg = "Vous avez oublié de taper votre solution. Veuillez recommencer"; } // DEALING WITH THE DATABASE if(isset($_POST['solution']) && empty($error_msg)) { // Connexion $link = mysql_connect($dbhost, $dbuser, $dbpassword) OR die(mysql_error()); $ma_solution = mysql_real_escape_string($_POST['solution']); $db->query("INSERT INTO solutions (text) VALUES ('$ma_solution')"); } } ?> ';?>

2006 | 2005 | 2004 | contact

vert jaune café violet

Quelques solutions

 

Et vous, quelle est votre solution ? (max 50 car.)

Veuillez également saisir le texte de contrôle qui apparaît ci-dessous:

 

$error_msg

"; } ?>

 

Résultat des participations

get_results("SELECT UNIX_TIMESTAMP(time) as time, text FROM solutions") ) { $j=0; foreach ($solutions as $solution) { $j=$j+1; echo "[".date("m/d",$solution->time)."] $j. $solution->text - "; } } ?>