2. August 200421 j Hallo, weiß jemand vielleicht spontan, wie ich in php überprüfen kann, ob eine mySQL-Abfrage ein Ergebnis zurück liefert oder ob die Abfrage ein leeres Ergebnis zurück liefert? --- $result = mysql_query($sql); if ($result!="") { echo "..."; } --- Grüße, Marcus
3. August 200421 j http://de2.php.net/manual/en/function.mysql-num-rows.php mysql_num_rows() returns the number of rows in a result set. This command is only valid for SELECT statements. http://de2.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.
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.