ESH/select_event_by_id.php
2024-10-23 18:28:06 +05:30

18 lines
341 B
PHP

<?php
include('includes/config/config.php');
error_reporting(E_ERROR | E_PARSE);
$event_name = $_REQUEST['event_name'];
$sql="select * from event_master where event_name='$event_name'";
//echo $sql;
$result = mysqli_query($conn,$sql);
$data=array();
while ($row= mysqli_fetch_assoc($result)) {
$data=$row;
}
echo json_encode($data);