how to plugin datatable in php file when i fetching data in phpmyadmin.

how to plugin datatable in php file when i fetching data in phpmyadmin.

RahulSqlRahulSql Posts: 1Questions: 1Answers: 0

how to plugin datatable in php file when i fetching data in phpmyadmin. i am try to upload .css file and .js file with script in header section but till not responded jquery datatable how but is problem there i just send code below pls guide me.

<!DOCTYPE html>
<html>
<head>
<title>rahul</title>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
<script type="text/javascript" src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.4.js">

</script><script type="text/javascript">
$(document).ready(function(){
$('#myTable').DataTable();
});</script>

</head>
<body>

<?php $con = mysql_connect("localhost","root",""); $db = mysql_select_db('mydb',$con); $query = "select * from booking"; $run = mysql_query($query); while($row = mysql_fetch_array($run)){ $u_id = $row[0]; $u_em = $row[1]; $u_pname = $row[2]; $u_bdate = $row[3]; $u_amt = $row[4]; $u_stime = $row[5]; $u_etime = $row[6]; $u_atime = $row[7]; $u_dtime = $row[8]; $u_vno = $row[9]; ?> <?php } ?>
Booking Id Email/Mob. Park Name Booking date Amount Start Time End Time Arrival Time Depture Time Vehical No.
<?php echo $u_id; ?> <?php echo $u_em; ?> <?php echo $u_pname; ?> <?php echo $u_bdate; ?> <?php echo $u_amt; ?> <?php echo $u_stime; ?> <?php echo $u_etime; ?> <?php echo $u_atime; ?> <?php echo $u_dtime; ?> <?php echo $u_vno; ?>

</body>
</html>

This discussion has been closed.