hii……
i want to create comman php file which is pass in url for all templates.i have written jquery code in all templates for different listing.i have got only one column data rather than whole data that is main problem any one help me for resolve it.my code is..
$limit = $_GET['rows']; // get how many rows we want to have into the grid
$sidx = $_GET['sidx']; // get index row – i.e. user click to sort
$sord = $_GET['sord']; // get the direction
$table_name=$_GET['tbname'];
$colname=explode(“,”,$_GET['col']);
//$colname1=$colname[0];
if(!$sidx) $sidx =1;
// connect to the database
$db = mysql_connect('localhost','root','')
or die(“Connection Error: ” . mysql_error());
mysql_select_db('ourhealt_ourhdb') or die(“Error conecting to db.”);
$result = mysql_query(“SELECT COUNT(*) AS count FROM $table_name”);
$row = mysql_fetch_array($result,MYSQL_ASSOC);
$count = $row['count'];
if( $count >0 ) {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top