"hehe" <clark@cool.dk> wrote in message
news:9jf14m$5k6$1@news.cybercity.dk...
> Efter at have indsat noget i en table. Hvad kan man så gøre for at få en
> "rapport" på at den er rigtig indsat??
fra
http://dk.php.net/manual/en/function.mysql-query.php :
mysql_query() returns TRUE (non-zero) or FALSE to indicate whether or not
the query succeeded. A return value of TRUE means that the query was legal
and could be executed by the server. It does not indicate anything about the
number of rows affected or returned. It is perfectly possible for a query to
succeed but affect no rows or return no rows.
fra
http://dk.php.net/manual/en/function.mysql-affected-rows.php :
mysql_affected_rows() returns the number of rows affected by the last
INSERT, UPDATE or DELETE query associated with link_identifier. If the link
identifier isn't specified, the last link opened by mysql_connect() is
assumed.
Jeg ved ikke lige hvad pointen var med den kodestump du postede..
--
Mvh. Nezar Nielsen
http://fez.dk/