Plugin not working on my side.

Plugin not working on my side.

affan502affan502 Posts: 2Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
my table data come from database.so i need pagination.but your plugin not working please help me i am showing code below check it.





@import "../media/css/demo_table.css";










<?php
include("db.php");

//grand Total Variable query



//Get fields name query
$result1=mysql_query("SELECT * FROM books");

$f0 = mysql_field_name( $result1,0);
$f1 = mysql_field_name( $result1,1);
$f2 = mysql_field_name( $result1,2);
$f3 = mysql_field_name( $result1,3);
$f4 = mysql_field_name( $result1,4);
$f5 = mysql_field_name( $result1,5);
$f6 = mysql_field_name( $result1,6);
$f7 = mysql_field_name( $result1,7);
$f8 = mysql_field_name( $result1,8);
$f9 = mysql_field_name( $result1,9);
$f10 = mysql_field_name( $result1,10);
echo "";
echo "";
echo "".$f0."";
echo "".$f1."";
echo "".$f2."";
echo "".$f3."";
echo "".$f4."";
echo "".$f5."";
echo "".$f6."";
echo "".$f7."";
echo "".$f8."";
echo "".$f9."";
echo "".$f10."";

echo "";
echo "";

//get columns Data query

$result=mysql_query("SELECT * FROM books");


while($test = mysql_fetch_array($result))
{
$id = $test['BookID'];

echo "";
echo "";
echo"" .$test['BookID']."";
echo"" .$test['name']."";
echo"". $test['father_name']. "";
echo"". $test['monthly_income']. "";
echo"". $test['wasiyat_number']. "";
echo"". $test['wasiyat_fund']. "";
echo"". $test['tahrikaa_jadid_fund']. "";
echo"". $test['waqfi_jadid_fund']. "";
echo"". $test['local_fund']. "";
echo"". $test['jalsa_salana_fund']. "";
echo"". $test['total']. "";


//Check if Admin login than option enable....

if($_SESSION['user_name'] == "admin"){

echo" Edit";
echo" Delete";

echo "";}
echo"";
echo "";
echo "";
}
mysql_close($conn);


?>

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    As noted in the forums rules, and in the "New post" form, please link to a test case. Without a test case we cannot offer any help.

    Allan
  • affan502affan502 Posts: 2Questions: 0Answers: 0
    How can i give you test example.i mean these code are in php.
This discussion has been closed.