How to reload datatable using php & mysql ?

How to reload datatable using php & mysql ?

hackernamhackernam Posts: 2Questions: 0Answers: 0

My code:

<?php $con = mysql_connect("localhost","root",""); if(!$con) { die("Error:".mysql_error()); } mysql_select_db("abc",$con); $result = mysql_query("select * from product"); <?php >

?>

Datatable + Responsive

For help with such table please check http://datatables.net/
<?php while ($row = mysql_fetch_array($result)) {?> <tr> <td><?=$row['name']?></td> <td><?=$row['price_sale']?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div><!--/span-->
Name Price

Replies

  • hackernamhackernam Posts: 2Questions: 0Answers: 0

    help me please

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    edited October 2014

    A. I don't understand what you mean by "reload" in this context.

    B. I don't see where you're initialising DataTables in your code.

This discussion has been closed.