0) { // Set custom header to indicate duplicate submission header("X-Response-Status: duplicate"); echo ""; } else { // Insert query $qry = "INSERT INTO tools_submission (product_name, domain, logo_url, screenshot_url, keywords, description, features_description, submitted_ip, language) VALUES ('$product_name', '$domain', '$logo_url', '$screenshot_url', '$keywords', '$description', '$ai_description', '$submitted_ip', '$language')"; // Execute the query $run = mysqli_query($conn, $qry); if ($run) { // Set custom header to indicate successful submission header("X-Response-Status: success"); echo ""; echo ""; // Reload page after submission } else { // Set custom header to indicate submission failure header("X-Response-Status: error"); echo ""; } } } else { // Set custom header to indicate missing fields header("X-Response-Status: missing_fields"); echo ""; } } ?>
Submit Your AI Tool
Master the art of AI tools: unleash the power of automation and creativity with AI Tool Path
Business cooperation: admin@aitoolpath.com
Tool review: a1726850085@outlook.com