Minor display cleanup
[mirrors/Kyberia-bloodline.git] / scripts / content_innodb.php
1 <?php
2 //requiring main config file with path/database etc. constants
3 require('../config/config.inc');
4
5 //connecting to database and creating universal $db object
6 require(SYSTEM_ROOT.'/inc/log.inc');
7 require(SYSTEM_ROOT.'/inc/database.inc');
8 require(SYSTEM_ROOT.'/inc/nodes.inc');
9 $db=new CLASS_DATABASE();
10
11 $qNCOld = "select * from node_content";
12 $i=0;
13 $set = $db->query($qNCOld);
14 while ($set->next()) {
15 $i++;
16 if ($i%100==0) echo "$i nodes loaded\n";
17 $qNCNew = "update nodes set node_content='".addslashes($set->getString('node_content'))."' where node_id='".$set->getString('node_id')."'";
18 $db->query($qNCNew);
19 }
20 ?>
This page took 0.420397 seconds and 4 git commands to generate.