Date: 01/26/00
- Next message: Detlev Wagner: "[PHPLIB] $sess->delete() not yet available?"
- Previous message: Jan Johansson: "Re: [PHPLIB] gc_probability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I often use the table class to show database data.
When i want to "do" something with the data i use the check
option to mark the refered item.
$db->query("select.......");
after a submit i have the row number of the last select.
Is it OK to go again through the database (do a new select)
and walk through the result with soething like this
$db->query("Select id from filetypes");
$db->next_record();
$i = 0;
while ($db->next_record()){
if ($on[$i] == "yes"){
$del_id = $db->f("id");
$db->query("DELETE FROM filetypes where id=$del_id");
$erfolg = $db->affected_rows();
break;
}//End IF
$i++;
}//EndWhile
Ore how do you use the check options?
Thanks in advance
Thomas Biebl
Ingenieurbüro Lummer + Biebl
Heinrich-Geiler-Str.6
69242 Mühlhausen
Tel.: 06222/94350
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Detlev Wagner: "[PHPLIB] $sess->delete() not yet available?"
- Previous message: Jan Johansson: "Re: [PHPLIB] gc_probability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

