aggiungere numeri progressivi ad una tabella

1 contenuto / 0 new
aggiungere numeri progressivi ad una tabella

Un report è costituito da una tabella con il nome, mail, tel. ecc.;
avrei bisogno di numerare le righe della tabella: per favore qualcuno mi può suggerire come fare?

la tabella è questa:

Quote:
$cols = array("Name" => 'fullname_lf', "Email" => 'email', "Phone" => 'phone', 'Conf Code' => 'conf_code_blind_l');

e il database che la genera dovrebbe essere questo:

Quote:
// Get Slots
$slots = array();
$result = db_query("SELECT registration.rid AS rid, registration.sid AS sid, registration.pid AS pid, role_name, tslot_start, tslot_duration, fname, lname, email, phone, conf_code FROM {event_registration} AS registration LEFT JOIN {event_roles} AS roles ON registration.rid=roles.rid LEFT JOIN {event_timeslots} AS slots ON ((registration.nid=slots.nid) AND (registration.sid=slots.sid)) LEFT JOIN {event_participant} AS participants ON registration.pid=participants.pid WHERE registration.nid=%d ORDER BY tslot_start, rid_seq, COALESCE(lname,'zzzzzzzzzz'), COALESCE(fname, 'zzzzzzzzzz')", $nid);
while ($slot_record = db_fetch_array($result))
$slots[] = $slot_record; // clone

grazie infinite