<?php $con = mysql_connect("localhost", "root", ""); if (!$con) { die("Error: " . mysql_error()); } mysql_select_db("kurier", $con); $result = mysql_query("SELECT * FROM klienci"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href=" /kurier/inc/wybierz.css " type="text/css" /> <style type="text/css"> @import "/kurier/media/css/demo_table_jui.css"; @import "/kurier/media/themes/smoothness/jquery-ui-1.8.4.custom.css"; </style> <style> *{ font-family: arial; } </style> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#form').submit( function() { var sData = $('input', oTable.fnGetNodes()).serialize(); alert( "The following data would have been submitted to the server: \n\n"+sData ); return false; } ); /* Init the table */ oTable = $('#datatables').dataTable({ "sPaginationType":"full_numbers", "aaSorting":[[2, "desc"]], "bJQueryUI":true }); } ); /* Get the rows which are currently selected */ </script> </head> <body> <div id="wyb_kl"> <form id="form"> <div style="text-align:right; padding-bottom:1em;"> </div> <table id="datatables" class="display"> <thead> <tr> </tr> </thead> <tbody> <?php while ($row = mysql_fetch_array($result)) { ?> <tr> </tr> <?php } ?> </tbody> </table> </form> </div> </body> </html>
chce zrobić tabelkę z opcja wyboru uzytkownika , ktorego id przesle do php , problem polega na tym ze automatycznie gdy dodaje kolumne z radio znika mi stylizacja plugin datatables i mozliwosc sortowania