Executer requête sql pour mise a jour php

Nanit6 -  
 arrtheon 09 -
Bonjour,
Je cherche à effectuer l'installation d'un MOD (anti-bot-question-mod_v_3_0_0) pour mon forum.
Il me demande d'effectuer une requête du type :
# 
#-----[ OPEN ]------------------------------------------------ 
# 
posting.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
include($forum_root_path . 'includes/functions_post.'.$phpEx);

# 
#-----[ AFTER, ADD ]------------------------------------------------ 
# 
// Anti Bot Question Mod - Start
include($forum_root_path . 'includes/functions_abq.' . $phpEx);
// Anti Bot Question Mod - End

...


mais mon problème est que je ne sais pas comment l'exécuter.
J'ai d'abord tenté avec phpMyAdmin en faisant exécuter au niveau de la base de donnée, mais il me dit qu'il y a une erreur de syntaxe entre posting.php et include.
N'étant pas très calé en sql, je ne sais pas ce qui cloche.
Si vous êtes un lapin de paques, vous pourrez peut etre m'apporter les autres cloches ;)
Merci
A voir également:

4 réponses

toto
 
Bonjour

Ça m'étonnerait bien qu'on t'aie demandé d'effectuer cette requête
Ceci n'est pas une requête.
C'est simplement une suite de consignes destinées à être exécutées par un humain - toi. Je traduis en français :

OUVRE le fichier
posting.php

TROUVE la ligne
include($forum_root_path . 'includes/functions_post.'.$phpEx);

APRES CETTE LIGNE, AJOUTE

// Anti Bot Question Mod - Start
include($forum_root_path . 'includes/functions_abq.' . $phpEx);
// Anti Bot Question Mod - End
0
toto
 
Après tout... ton forum a peut-être un utilitaire qui est capable d'interpréter un fichier de commandes de cette forme. Mais sûrement pas phpmyadmin.
0
Nanit6
 
J'avais peur que ça soit ça...
Bon ben c'est parti pour 26 pages de copier coller !
Merci de ton aide
0
arrtheon 09
 
je suis dans le meme cas que nanit, sauf que moi, c'est pour un server wow: mon probleme est a la base de donne mangos. lorsque je lance mangosd.exe, ca ma met ca:
009-07-30 09:05:44 MaNGOS/0.14.0-DEV (2009-07-06 16:58:46 Revision 8136 - b3abb80590a3c34542af61e4d2e01a6ef2c05fb9) for Win32 (little-endian) [world-daemon]
2009-07-30 09:05:44 <Ctrl-C> to stop.


MM MM MM MM MMMMM MMMM MMMMM
MM MM MM MM MMM MMM MM MM MMM MMM
MMM MMM MMM MM MMM MMM MM MM MMM
MM M MM MMMM MM MMM MM MM MMM
MM M MM MMMMM MM MMMM MMM MM MM MMM
MM M MM M MMM MM MMM MMMMMMM MM MM MMM
MM MM MMM MM MM MM MMM MM MM MMM
MM MM MMMMMMM MM MM MMM MMM MM MM MMM MMM
MM MM MM MMM MM MM MMMMMM MMMM MMMMM
MM MMM http://getmangos.com
MMMMMM


2009-07-30 09:05:45 Using configuration file mangosd.conf.
2009-07-30 09:05:45 World Database: 127.0.0.1;3306;kiki200;kaimana2;mangos
2009-07-30 09:05:45 MySQL client library: 5.0.56
2009-07-30 09:05:45 MySQL server ver: 5.1.36-community-log
2009-07-30 09:05:45 Character Database: 127.0.0.1;3306;kiki200;kaimana2;characters
2009-07-30 09:05:45 MySQL client library: 5.0.56
2009-07-30 09:05:45 MySQL server ver: 5.1.36-community-log
2009-07-30 09:05:45 Login Database: 127.0.0.1;3306;kiki200;kaimana2;realmd
2009-07-30 09:05:45 MySQL client library: 5.0.56
2009-07-30 09:05:45 MySQL server ver: 5.1.36-community-log
2009-07-30 09:05:45 Realm running as realm ID 1
2009-07-30 09:05:45 ERROR:SQL: SELECT version, creature_ai_version FROM db_version LIMIT 1
2009-07-30 09:05:45 ERROR:query ERROR: Unknown column 'creature_ai_version' in 'field list'
2009-07-30 09:05:45 Using World DB: Unknown world database.
2009-07-30 09:05:45 Using creature EventAI: Unknown creature EventAI.
2009-07-30 09:05:45 Using DataDir ./
2009-07-30 09:05:45 WORLD: VMap support included. LineOfSight:0, getHeight:0
2009-07-30 09:05:45 WORLD: VMap data directory is: ./vmaps
2009-07-30 09:05:45 WORLD: VMap config keys are: vmap.enableLOS, vmap.enableHeight, vmap.ignoreMapIds, vmap.ignoreSpellIds
2009-07-30 09:05:45
2009-07-30 09:05:45 Loading MaNGOS strings...
2009-07-30 09:05:45 ERROR:SQL: SELECT entry,content_default,content_loc1,content_loc2,content_loc3,content_loc4,content_loc5,content_loc6,content_loc7,content_loc8 FROM mangos_string
2009-07-30 09:05:45 ERROR:query ERROR: Unknown column 'content_loc8' in 'field list'
2009-07-30 09:05:45
2009-07-30 09:05:45 ERROR:>> Loaded 0 mangos strings. DB table `mangos_string` is empty. Cannot continue.



comme dit ci dessous, mangos string est vide, donc il faut le remplir, c'est la ou je commence a membrouiller.
j'essaie de limporter avec phpmyadmin, puis de l'exec comme un sequenciel, maiis ca me met ceci (pour mysql):

[Err] 1046 - No database selected
[Err] ALTER TABLE db_version CHANGE COLUMN required_7830_01_mangos_spell_chain required_7839_01_mangos_mangos_string bit;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
lla sa me met

required_7830_01_mangos_spell_chain required_7839_01_mangos_mangos_string bit

et quand je lance ces 2 las, sa me renvoye sur autre chose et ainci de suite aidez moi plzzz
0
arrtheon 09
 
oups dsl pour les m c'est le logo de mangos
0