howdy,
I've had a look around and haven't been able to find what I'm after..
What I'm trying to do is display the number of each individual record with
in a table in a db WITH OUT relying on the records id, here what I've come
up with so far:
//get and count the number of records in the table
$result = mysql_query(select * from [database table]);
echo table;
while($data = mysql_fetch_array($result))
{
$count++;
echo tr;
echo td$count/td;
echo td$data[0]/td;
echo td$data[1]/td;
...and so on
echo /tr;
}
echo /table;
This
Thanks Robert
-Original Message-
From: Van Andel, Robert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 November 2002 11:43 AM
To: Peter Houchin; php_gen
Subject: RE: [PHP] displaying record number in a cell in a table
$result = mysql_query(select * from [database table]);
echo
3 matches
Mail list logo