|
|
Code (PHP)
<?
$letter=array("AA","AB","AC","AD","AE","AF","AG", "AH","AI","AJ","AK","AL","AM","AN","AO","AP","AQ", "AR","AS","AT","AU","AV","AW","AX","AY","AZ","BB","BC","BD","BE","BF","BG","BH","BI","BJ","BK","BL","BM","BN","BO","BP","BQ","BR","BS","BT","BU","BV","BW","BX","BY","BZ","CC","CD","CE","CF", "CG","CH","CI","CJ","CK","CL","CM","CN","CO","CP","CQ","CR", "CS","CT","CU","CV","CW","CX","CY","CZ","DD","DE","DF","DG","DH","DI","DJ","DK","DL","DM","DN","DO","DP","DQ","DR","DS","DT","DU","DV","DW","DX","DY","DZ","EE","EF","EG","EH","EI","EJ","EK", "EL","EM","EN","EO","EP","EQ","ER","ES","ET","EU","EV","EW", "EX","EY","EZ","FF","FG","FH","FI","FJ","FK","FL","FM","FN","FO","FP","FQ","FR","FS","FT","FU","FV","FW","FX","FY","FZ","GG","GH","GI","GJ","GK","GL","GM","GN","GO","GP","GQ","GR","GS","GT","GU", "GV","GW","GX","GY","GZ","HH","HI","HJ","HK","HL","HM","HN", "HO","HP","HQ","HR","HS","HT","HU","HV","HW","HX","HY","HZ", "II","IJ","IK","IL","IM","IN","IO","IP","IQ","IR","IS","IT","IU","IV","IW" ,"IX","IY","IZ","JJ","JK","JL","JM","JN","JO","JP","JQ","JR","JS","JT" ,"JU","JV","JW","JX","JY","JZ","KK","KL","KM","KN","KO","KP","KQ" ,"KR","KS","KT","KU","KV","KW","KX","KY","KZ","LL","LM","LN","LO" ,"LP","LQ","LR","LS","LT","LU","LV","LW","LX","LY","LZ","MM","MN", "MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ" ,"NN","NO","NP","NQ","NR","NS","NT","NU","NV","NW","NX","NY", "NZ","OO","OP","OQ","OR","OS","OT","OU","OV","OW","OX","OY", "OZ","PP","PQ","PR","PS","PT","PU","PV","PW","PX","PY","PZ","QQ" ,"QR","QS","QT","QU","QV","QW","QX","QY","QZ","RR","RS","RT", "RU","RV","RW","RX","RY","RZ","SS","ST","SU","SV","SW","SX","SY" ,"SZ","TT","TU","TV","TW","TX","TY","TZ","UU","UV","UW","UX","UY" ,"UZ","VV","VW","VX","VY","VZ","WW","WX","WY","WZ","XX","XY","XZ","YY","YZ","ZZ");
$l=$_GET['data'];
if($l==""){$l=0;}
include"function/function.php";
function sort8($a,$b){
for($i=0;$i<6;$i++){
$c[]=substr($a,$i,1);
}
$c[]=substr($b,0,1);
$c[]=substr($b,1,1);
sort($c);
return implode($c);
}
$a=mysql_query("select * from sort6 limit $l,1");
while($b=mysql_fetch_array($a)){
$c=$b['word'];
$i=array();
$z=0;
for($e=0;$e<count($letter);$e++){
$f=sort8($c,$letter[$e]);
$g=mysql_query("select * from 8l where sort='$f'");
$h=mysql_num_rows($g);
if($h>0){
array_push($i,$letter[$e]);
$z++;}
}
if($z>45){
$k=implode($i);
mysql_query("insert into formula8 (formula,letter,count) value ('$c','$k','$z')");
print"$c = $z = $k<br>";
}
}
$m=$l+1;
print"<title>$m $c";
if($z>45){
print" - $z yes";
}else{print" $z no";}
print"</title>";
if($m==68793){exit;}
print"<script language=\"javascript\">window.navigate(\"test9.php?data=$m\")</script>";
?>
Tag : PHP
|
|
|
|
|
|
Date :
2010-12-19 21:54:47 |
By :
monotakari |
View :
919 |
Reply :
6 |
|
|
|
|
|
|
|
|
|