<?php
$a = 0;
while($a<=5){
echo $a."<br>";
$a++;
}
?>
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
<?php
$x = 1;
do {
echo "The number is: $x <br>";
$x++;
} while ($x <= 5);
?>
<?php
$i = 0;
while($i<10)
{
echo $i;
echo "<br>";
echo $i++;
}
?>
<?php
$x = 1;
while($x <= 5) {
echo "The number is: $x <br>";
$x++;
}
?>
<?php
include '../config/config.inc';
$sql = "SELECT TOP(1) * FROM assembly_armatureassy_tbl";
$data = array();
$query = mssql_query($sql);
while($result = mssql_fetch_array($query)){
$data[] = array(
'date' => $result['date'],
'shift' => $result['shift'],
'relay_type' => $result['relay_type'],
'quantity' => $result['quantity'],
'operator_name' => $result['operator_name'],
);
}
echo json_encode($data);
?>
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
<?php
$limit = 100;
for($counter,$counter<=$limit;$counter++){
// code
}
?>