Why does it keep showing failure?

<?php
  header("Content-Type: text/html; charset=utf-8");
  


  $advice_content=$_POST["textarea"];//posttextarea
  $uphonenumber=$_POST["uphonenumber"];//postuphonenumber

  
  if(empty($uphonenumber) || empty($advice_content)){
               echo "";            
            }
  include("init.php");//
  $sql="insert into yffice_advice(id,advice-content,uphonenumber) values (null,"$advice_content","$uphonenumber")";//sql
  mysql_query("SET NAMES utf8"); 
  $result=mysql_query($sql);//sql
  if($result){
    echo "";
    }else{
    echo "";
    }
  mysql_close();//

?>

this is the returned result:

clipboard.png

echo $sql$result:

clipboard.png

Php
Mar.05,2021

solved it by myself. I just messed with the column name of the database without adding-


what error does it suggest? Post the error result

Menu