Ask about general coding issues or problems here.
3 posts • Page 1 of 1
Look at your logic. specifically this part.
mysql_query() for a delete statement returns true upon success. But you're reporting fail for true response, and success otherwise. Hence the false positive. Fix your logic and you should get some helpful output as to why the record isn't being deleted. The documentation for the function is at http://us2.php.net/manual/en/function.mysql-query.php and it starts with the same warning about using deprecated libraries that my first response did.$retval = mysql_query( $query, $conn );
die('Could not delete data: ' . mysql_error());
Who is online
Users browsing this forum: No registered users and 4 guests