problem in recorset that seems temporary
am 25.01.2008 17:35:59 von Ruprecht HelmsHi,
I have a problem that confuse me a little bit. When I want to delete a
picture by giving the id-value in the URL I get the following error:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL
result resource in
/opt/lampp/htdocs/pferdeservice_karle/galerie_delete.php on line 81
On clicking the relodebutton on the browser I get no error and the
deletion of the recordset seems to be not executed. When I don't reload
the page and change to view the pictureresults the recordset have been
deleted. But I don't know why I get the warning-message.
Attached the code.
Regards,
Ruprecht
http://www.rheyn.de
----------------------------------------------------
"http://www.w3.org/TR/html4/loose.dtd">
| Galerie löschenmysql_connect("localhost","root"); $result=mysql_db_query("pferdeservice-karle","SELECT * FROM Galerie WHERE ID=$id"); $zahl = mysql_num_rows($result); echo "Zahl vorhandener Bilder ".$zahl; echo mysql_error(); while($row = mysql_fetch_object($result)) { $galerie_id=$row->ID; $result=mysql_db_query("pferdeservice-karle","DELETE FROM Galerie_kultur WHERE GalerieID=$id"); } $result=mysql_db_query("pferdeservice-karle","DELETE FROM Galerie WHERE ID=$id"); echo mysql_error(); ?> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Re: problem in recorset that seems temporaryam 25.01.2008 19:26:35 von krister.karlstromHi! |