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
vogaldesign
Posts: 1Questions: 0Answers: 0
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]
[code]
Username
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]
This discussion has been closed.
Replies