Location: PHPKode > scripts > MySQL/HTML-Client > mysqlhtml-client/modules/delete.inc.php
<?php
    if ($radio_name && $radio_name != "new") {
        $query_text = "DELETE FROM " . $table;
        if ((strstr($primary_key_field, "__"))&&(strstr($radio_name, "__"))) {
            $primary_key_field_array = explode("__", $primary_key_field);
            $radio_name_array = explode("__", $radio_name);
            $query_text .= " WHERE";
            for ($i = 0; $i < sizeof($primary_key_field_array); $i++) {
                $query_text .= " " . $primary_key_field_array[$i] . "=\"" . $radio_name_array[$i] . "\"";
                if ($i < sizeof($primary_key_field_array)-1)
                    $query_text .= " AND";
            }
        } else {
            $query_text .= " WHERE " . $primary_key_field . "=\"" . $radio_name . "\"";
        }
        @mysql_db_query($database, $query_text, $db_link) or mysql_client_error_msg($query_text, __FILE__, __LINE__);
    } else {
        echo "<script>alert(\"Select row to be deleted\");</script>\n";
    }
?>
Return current item: MySQL/HTML-Client