Enfaite j'avais une big liste de titre, je vais prendre quelque exemple :
Star Wars : The New Droid Army
Star Wars Episode 3 : La Revanche Des Sith
Star Wars Trilogy : Apprentice Of The Force
Star X
Street Fighter Alpha 3
Stuart Little 2
Super Bust A Move
Super Dodge Ball Advance
Super Ghouls'n Ghosts
Super Mario Advance
Super Mario Advance 2
Super Mario Advance 4 : Super Mario Bros 3
Super Mario Ball
Super Mario Bros
J'avais coller ça dans la partie "Code" de Dreamveawer, dans une page complérement vide.
Puis pressé CTRL + F pour faire une rechercher, jai mis le texte à rechercher :
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
S
(les ||| représente des espace enfaite)
Puis j'ai remplacer par :
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','S
Ce qui me donne :
<?
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','BStar Wars : The New Droid Army
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Star Wars Episode 3 : La Revanche Des Sith
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Star Wars Trilogy : Apprentice Of The Force
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Star X
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Street Fighter Alpha 3
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Stuart Little 2
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Bust A Move
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Dodge Ball Advance
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Ghouls'n Ghosts
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Advance
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Advance 2
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Advance 4 : Super Mario Bros 3
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Ball
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Bros
?>
On reglant 2 ptit probléme, celui du 1er titre et le tout dernier titre ca nous donne au final :
<?
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','BStar Wars : The New Droid Army
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Star Wars Episode 3 : La Revanche Des Sith
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Star Wars Trilogy : Apprentice Of The Force
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Star X
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Street Fighter Alpha 3
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Stuart Little 2
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Bust A Move
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Dodge Ball Advance
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Ghouls'n Ghosts
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Advance
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Advance 2
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Advance 4 : Super Mario Bros 3
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Ball
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
$sql = "INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Bros
')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
?>
Voilà comment ajouter plus de 500 titre dans 5mn seulement. Enfaite ça servait à rien que je mette toute cette démarche, mais puisque tu me la demander ^^
Je remarque que j'ai fait la requete comme ça :
INSERT INTO fiches_jeux_".$_GET['console']."(id,titre) VALUES('','Super Mario Bros
')";
Si jaurais fait la requete ainsi ets ce que ca aurait regler le problème ?
INSERT INTO fiches_jeux_".$_GET['console']."(id,titre,champ3,champ4,champ5,champ6,champ7,champ8) VALUES('','Super Mario Bros','','','','','','')";
Vous me direz que j'ai ca tester avant de demander, c'est ce que je vais vite faire.