updating
am 06.11.2002 17:23:12 von angelo.rigoHi
I am working on an update php script, i have a list of the records and at
the bottom of the script i do write the id number
on the id field i want to change and the others fields values, i have to
write it, i want to select with a radio button and to get the fields at
the bottom receiving the values of that line i do select how can i do that?
Below is my script:
//part one: list and update form.
$db =3D pg_connect("dbname=3Ddb user=3Duser");
$query =3D "SELECT * FROM thetable";
$result =3D pg_exec($db, $query);
if (!$result) {printf ("ERROR"); exit;}
$numrows =3D pg_numrows($result);
$row=3D0;
printf ("
ID | Cidade | Local | Dia | M=EAs > | Hor=E1rio | Evento | |
%s | %s | %s | %s= td> | %s | %s | %s | %s |
");
pg_close($db);
?>