Jump to content
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

requete mysql foireuse [resolu]

Featured Replies

Posted

voici mon problème :

case 11: 
?><td align="center" valign="center" width="100%" color="red"><?
$nom=$_POST['nom'];
$type=$_POST['type'];
$arme=$_POST['arme'];
$lvl=$_POST['lvl'];
$soute=$_POST['soute'];
$prix=$_POST['prix'];
$bat=$_POST['bat'];
$nan=$_POST['nan'];
$equip=$_POST['equi'];

$commentaire=addslashes(nl2br($_POST['commentaire']));


     $admin=$_POST['admin'];
$pass=$_POST['pass'];
$verif=crypt($pass,$admin);
     if ($poisse==$verif){
   	$db = @mysql_connect("$dbhost", "$dblogi", "$dbpass") OR DIE("<br><br><center><font color=red face=arial size=2><b>Désolé, la Base est Down !</b></font></center>");
@mysql_select_db("$dbbase",$db) OR DIE;
$ok=mysql_query("INSERT INTO `vaisseau` ( `id` , `nom` , 'type' , 'armes_nb' , 'armes_lvl' , 'soute' , prix' , `commentaire` , `baterie` , 'nanorobot' , 'equipement' ) 
VALUES ( '', '$nom' , '$type' , '$arme' , '$lvl' , '$soute' , '$prix' , '$commentaire' , '$bat' , '$nan' , '$equip')");
     if ($ok) {echo "Enregistrement du $nom effectué avec succès";}else {echo ('<font size="4" color="red"><B><br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
         	echo (" <br>!! Enregistrement non réalisé !! Vérifiez que $nom n'est pas deja enregistré(e)!!");
         	echo (' <br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br></B></font>');}
 }
else {echo 'sa a foire pas bon mot de passe<br>';}

break;

quand je lance une requete, il arrive systematiquement sur le

 else {echo ('<font size="4" color="red"><B><br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'); ..."

, la condition ($poisse==$verif) etant vérifiée.

je ne trouve pas l'erreur :p

edit :

il manquait un ' avant prix

il a l'air de ne pas apprecier les ' et de preferer les ` dans les requetes :D

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.