DataTables warning (table id = 'My Table'): Requested unknown parameter '0' from the data source

DataTables warning (table id = 'My Table'): Requested unknown parameter '0' from the data source

vogaldesignvogaldesign Posts: 1Questions: 0Answers: 0
edited August 2013 in DataTables 1.9
How do i solve this error?

[code]



Username
Email
Points
Joined





<?php


$con = mysql_connect("localhost","cl49-XXX","XXX");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("cl49-XXX", $con)or die( "Unable to select database");

$result=mysql_query("SELECT * FROM products")or die('You need enter a catagory' );


echo ""; // first row beginning
for ($i = 1; $i <= mysql_num_rows($result); $i++)
{
$row = mysql_fetch_array($result);

$prodname = $row['prodname'];
$prodID = $row['prodID'];
$catagory = $row['catagory'];

echo "


$prodID
$prodname
$catagory



[/code]

Replies

This discussion has been closed.