设为首页| 加入收藏   


英汉 |黑板报 |英语 |全文 |论坛 |导航>>>
40000){ include(dirname(__FILE__)."/config.php"); $head=mysql_connect($dbhost,$dbuser,$dbpw) or die("Fehler!"); mysql_select_db($dbname)or die("Fehler!"); mysql_db_query($dbname,"SET character_set_client = utf8"); mysql_db_query($dbname,"SET character_set_results = utf8"); mysql_db_query($dbname,"SET character_set_connection = utf8"); $idArr = array(); $newWordStr = array(); $dictSumArr = 1541866; for($j=0;$j<5;$j++){ $query = "SELECT `id`,`word` FROM `encn_all` WHERE `id` >".ceil( $j * ($dictSumArr/5) )." AND `in_use` =0 ORDER BY `id` LIMIT 1 "; //echo $query; $result = mysql_db_query($dbname,$query); while($row = mysql_fetch_object($result)){ $idArr[] = $row->id; $newWordStr[]= "word))."/\" title=\"".$row->word."\" target=_blank>".$row->word.""; } } $query = "UPDATE `encn_all` SET `in_use` = '1' WHERE `id` in (".implode($idArr,",").");"; mysql_db_query($dbname,$query); shuffle($newWordStr); $newWordStr = implode($newWordStr,"  ")."\n"; echo $newWordStr; if ($handle = fopen($filename, "w")) { fwrite($handle, $newWordStr); } }else{ include($filename); } ?>
德汉 汉德 德德 法汉 汉法 英汉 西汉