Cant figure our why I get this error, Please Help!
this is my php file:

<?php
$servername = "localhost";
$username = "ebookcas_down";
$password = "down2263";
$dbname = "ebookcas_down";
// Create connection
$link = mysqli_connect($servername, $username, $password);
mysql_select_db($dbname);
    if ($CatID != "") {
    mysql_query("UPDATE Download_Cat Set CatName ='" . addslashes($CategoryName) . "' WHERE DownloadCatID=$CatID", $link);
    } else {
    mysql_query("INSERT INTO Download_Cat (CatName);
        VALUES ('" . addslashes($CategoryName) . "')", $link);
    }

    mysql_close()

    // Redirect to category list
    header("Location: categories.php");

?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.