Can someone tell me how MediaWiki code works or where can I find some infos ?
I'm trying to create a code to automatically add an user from an external code (not an extension)
This is the code that I'm using:
------------------------ <?php require_once( 'includes/WebStart.php' ); require_once( "includes/Wiki.php" ); require_once( "includes/DefaultSettings.php" ); require_once( "includes/SpecialUserlogin.php" ); require_once( "includes/User.php");
. . do some stuff create a connection to the DB (without using the database class), compute some data with user class . . if (mysql_query($query)){ echo("all OK"); } else { echo("ERROR"); } . . close the DB connection ?>
the same query used out of this file works so It's not a syntax error...
the only thing that I can think is that mediawiki buffers somewhere the queries and not execute them... am I wrong ? how is called the function used to execute this buffered queries ?
I've no issue with select queries only with insert (and I suppose update) ones.
Can someone answer me... plese, I'm really puzzled !
thank you all, simone