b0c0d0a1n2, , , , , , , , ,
Warning: Undefined offset: 9 in f:/Xitami/webpages/davjuani/test.php on line 27
, b0c0d0a1n1, , , , , , , , ,
Warning: Undefined offset: 9 in f:/Xitami/webpages/davjuani/test.php on line 27
I have two records in my database.
Above is the result of the code below:
$result=mysql_query(" select * from card_spec
where card_id like '%c0%'");
if(mysql_num_rows($result)==0)
{echo("no results");}
else
{
while ($row=mysql_fetch_array$result))
{
$num_rows=count($row);
for($i=0; $i<$num_rows; ++$i)
{
echo ("$row[$i], ");
}
}
I tried creating an index on the table, but that didn't help. I tried using mysql_fetch_array, but that didn't help either.
Any suggestions??