foreach($rs as $r) { $json=$r['text']; $status=$r['status']; $arr = json_decode($json); // print_r($arr); $empid = $arr->{'empid'}."</br>"; $firstname = $arr ->{'data'}->{'firstname'}."</br>"; $surname = $arr ->{'data'}->{'surname'}."</br>"; $mobile_tel1 = $arr ->{'data'}->{'mobile_tel1'}."</br>"; $mobile_tel2 = $arr ->{'data'}->{'mobile_tel2'}."</br>"; $Email = $arr ->{'data'}->{'Email'}."</br>"; $Company = $arr ->{'data'}->{'Company'}."</br>"; $Position = $arr ->{'data'}->{'Position'}."</br>"; $CommandLine = $arr ->{'data'}->{'CommandLine'}."</br>"; $CommandLineName = $arr ->{'data'}->{'CommandLineName'}."</br>"; $CommandType = $arr ->{'data'}->{'CommandType'}."</br>"; $Faction = $arr ->{'data'}->{'Faction'}."</br>"; $FactionName = $arr ->{'data'}->{'FactionName'}."</br>"; $Part = $arr ->{'data'}->{'Part'}."</br>"; $PartName = $arr ->{'data'}->{'PartName'}."</br>"; $DivisionArea = $arr ->{'data'}->{'DivisionArea'}."</br>"; $DivisionAreaName = $arr ->{'data'}->{'DivisionAreaName'}."</br>"; $Unit = $arr ->{'data'}->{'Unit'}."</br>"; $UnitName = $arr ->{'data'}->{'UnitName'}."</br>"; $Address = $arr ->{'data'}->{'Address'}."</br>"; $AddressNumber = $arr ->{'data'}->{'AddressNumber'}."</br>"; $Village = $arr ->{'data'}->{'Village'}."</br>"; $Soi = $arr ->{'data'}->{'Soi'}."</br>"; $Road = $arr ->{'data'}->{'Road'}."</br>"; $Tumbon = $arr ->{'data'}->{'Tumbon'}."</br>"; $Amphur = $arr ->{'data'}->{'Amphur'}."</br>"; $ProvinceID = $arr ->{'data'}->{'ProvinceID'}."</br>"; $PostalCode = $arr ->{'data'}->{'PostalCode'}."</br>"; $created_at = $arr ->{'created_at'}."</br>"; } $sql2="select * from employees "; $query=mysql_query($sql2); while ($r2 = mysql_fetch_array($query)) { $empid2 = $r2['empid']."</br>"; $firstname2 = $r2['firstname']."</br>"; $surname2 = $r2['surname']."</br>"; $mobile_tel11 = $r2['mobile_tel1']."</br>"; $mobile_tel22 = $r2['mobile_tel2']."</br>"; $Email2 = $r2['Email']."</br>"; $Company2 = $r2['Company']."</br>"; $Position2 = $r2['Position']."</br>"; $CommandLine2 = $r2['CommandLine']."</br>"; $CommandLineName2 = $r2['CommandLineName']."</br>"; $CommandType2 = $r2['CommandType']."</br>"; $Faction2 = $r2['Faction']."</br>"; $FactionName2 = $r2['FactionName']."</br>"; $Part2 = $r2['Part']."</br>"; $PartName2 = $r2['PartName']."</br>"; $DivisionArea2 = $r2['DivisionArea']."</br>"; $DivisionAreaName2 = $r2['DivisionAreaName']."</br>"; $Unit2 = $r2['Unit']."</br>"; $UnitName2 = $r2['UnitName']."</br>"; $Address2 = $r2['Address']."</br>"; ; $AddressNumber2 = $r2['AddressNumber']."</br>"; $Village2 = $r2['Village']."</br>"; $Soi2 = $r2['Soi']."</br>"; $Road2 = $r2['Road']."</br>"; $Tumbon2 = $r2['Tumbon']."</br>"; $Amphur2 = $r2['Amphur']."</br>"; $ProvinceID2 = $r2['ProvinceID']."</br>"; $PostalCode2 = $r2['PostalCode']."</br>"; }
<?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; } if (in_array("mac", $os)) { echo "Got mac"; } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง