On Wed, Apr 16, 2008 at 10:26 AM, Simone Biagini simone.biagini@dflsrl.it wrote:
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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Do you get results passed back to you from your select queries? if you do, then the connection is OK, and the problem is somewhere else.