Manage AI Tool Cateogory
Add New Category
List Of All Categories
0): ?>
# Icon Name Description Created Date Action
Category Icon

No categories found
?>
alert('File is not an image.');"; $uploadOk = 0; } // Check file size (5MB max) if ($_FILES["c_icon"]["size"] > 5000000) { echo ""; $uploadOk = 0; } // Allow certain file formats if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif") { echo ""; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo ""; } else { if (move_uploaded_file($_FILES["c_icon"]["tmp_name"], $c_icon)) { // Insert the data into the database $sql = "INSERT INTO categories (c_name, cn_name, c_icon, description, cn_description) VALUES ('$c_name', '$cn_name', '$c_icon', '$description', '$cn_description')"; if (mysqli_query($conn, $sql)) { echo ""; // Redirect to dashboard after success exit(); } else { echo ""; } } else { echo ""; } } } ?>