Apart from the fact that I give you an answer to your original question, I will make other observations about your code, the first error is that you are not entering the password when your server clearly tells you that it requires it
On the other hand, the second error is that you are working with the mysqli driver first and then mixing with the mysql driver that is already in disuse then look at the changes that I have made to your work.
?php
$server = "localhost";
$user = "root";
$pass = "algunpass";
$db = "ohvee";
$conect = mysqli_connect("$server","$user","pass","db")
or die("ERROR");
$name = $_POST['name'];
$content = $_POST['content'];
$insertar = "INSERT into wall values ('$name','$content')";
$resultado = mysqli_query($conect , $insertar)
or die("ERROR AL INSERTAR");
mysqli_close($conect);
echo "Datos insertados correctamente";
On the other hand I tell you that your next problem is that just as this code is sensitive to SQL INJECTION, therefore you should make the following changes
<?php
$server = "localhost";
$user = "root";
$pass = "";
$db = "ohvee";
$conect = mysqli_connect("$server","$user","pass","db")
or die("ERROR");
$name = $_POST['name'];
$content = $_POST['content'];
$insertar = $conect->prepare("INSERT into wall(name, content) values (?,?)");
$insertar->bind_param('s', $name);
$insertar->bind_param('s', $content);
$insertar->execute();
$resultado = mysql_query($conect , $insertar)
or die("ERROR AL INSERTAR");
mysql_close($conect);
echo "Datos insertados correctamente";
As notes above I am with interogation signs using placeholders
I use the prepare method
I use bind_param to set what kind of value I'm going to send: s is for strings, i is for integer, d is for double and b is for blob data
Finally, finally, access to the execute method so that my query is processed and can be carried out