mardi 11 mai 2021

Database throwing error on correct insert query

I am getting an error 'File could not be uploaded due to server issue' This means insert query was not executed. It seems fine to me please help me find what's the problem

Also all variables are defined perfectly.

Also my databse connection is working well.

What could be possible reasons of error.

$flawquery = " INSERT INTO companydata (sno, title, url_title, company, hosted_at, links, management, file, name, email, username) VALUES ('$sno', '$title' , '$url_title', '$company' , '$hostedAt' , '$linksSupported' , '$management' , 'fileNameNew' , 'name' , 'email' , 'username' ) ";
    if(mysqli_query($con, $flawquery)){
        echo"<p>File successfully uploaded</p>";
    }else{
        echo"<p>File could not be uploaded due to server issue</p>";
    }

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire