include("../config.inc.php"); ?>
คู่มือการปฏิบัติงาน
$sqlc1 = "SELECT * FROM datafromgroup Where datafromgroup_id <> '1' Order by datafromgroup_id";
$resultc1 = mysqli_query($conn,$sqlc1);
$num_rowsc1 = mysqli_num_rows( $resultc1 );
if ($num_rowsc1 != 0) {
while ( $rsc1 = mysqli_fetch_array( $resultc1 ) )
{
$datafromgroup_id=$rsc1["datafromgroup_id"];
$sqlc = "SELECT * FROM datafrommtype Where datafromgroup_id='$datafromgroup_id' Order by datafrommtype_id Desc";
$resultc = mysqli_query($conn,$sqlc);
$num_rowsc = mysqli_num_rows( $resultc );
if ($num_rowsc != 0) {
while ( $rsc = mysqli_fetch_array( $resultc ) ) {
if ($rsc["datafrommtype_id"] =="0") {
$datafrommtype_name="อื่นๆ";
}else {
$datafrommtype_name=$rsc["datafrommtype_name"];
}
if ($rsc["datafrommtype_id"] =="11") { ?>
" target="_blank" class="text13normal-gray"> echo $datafrommtype_name; ?>
} else if ($rsc["datafrommtype_id"] =="12") { ?>
" target="_blank" class="text13normal-gray"> echo $datafrommtype_name; ?>
} else { ?>
" target="_blank" class="text13normal-gray"> echo $datafrommtype_name; ?>
}
}//จบ while
}
}//จบ while
}
?>