baseline 7.4 as-is produzione
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php␍
|
||||
include('headscript.php');␍
|
||||
//fetch table rows from mysql db␍
|
||||
$sql = "select * from roles";␍
|
||||
$result = mysqli_query($connection, $sql) or die("Error in Selecting " . mysqli_error($connection));␍
|
||||
␍
|
||||
//create an array␍
|
||||
$emparray = array();␍
|
||||
while($row =mysqli_fetch_assoc($result))␍
|
||||
{␍
|
||||
$emparray[] = $row;␍
|
||||
}␍
|
||||
echo json_encode($emparray);␍
|
||||
?>
|
||||
Reference in New Issue
Block a user