BUG#162 Added \propto
[mediawiki.git] / maintenance / trivialCmdLine.php
blob82f23dd4a5bb4348468b5a48b6290b0e264288ad
1 <?php
3 require_once( "commandLine.inc" );
4 # print "DB name: $wgDBname\n";
5 # print "DB user: $wgDBuser\n";
6 # print "DB password: $wgDBpassword\n";
8 print "This is an example command-line maintenance script.\n";
10 $dbr =& wfGetDB( DB_SLAVE );
11 $cur = $dbr->tableName( 'cur' );
12 $res = $dbr->query( "SELECT MAX(cur_id) as m FROM $cur" );
13 $row = $dbr->fetchObject( $res );
14 print "Max cur_id: {$row->m}\n";