代码是生成概率,选择它,然后从mysql数据库表中提取它

时间:2016-05-14 02:07:48

标签: php mysql

 $shadeprobability = new ProbabilityRandom;  
 $shadeprobability->add($mothershade,10);  
 $shadeprobability->add($fathershade,10);  
 $shadeprobability->add("1000",100);  
 $shadeprobability->add("1001",25);  
 $shadeprobability->add("1002",15);  
 $shadeprobability->add("1003",25);  
 $shadeprobability->add("1004",15);  
 $shadeprobability->add("1005",15);  
 $shadeprobability->add("1006",25);  
 $shadeprobability->add("1007",15);  
 $shade = $shadeprobability->get();  
 $sql = "SELECT * FROM `shade` LIMIT 0, 30 ";  
 $arrayshade = $shade;  

我不确定如何获得$ shade = $ shadeprobability - > get();转到数据库并找到匹配项,然后将其存储在$ arrayshade

0 个答案:

没有答案