Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Good afternoon, I have a small problem with my digital ocean server, when I upload my script to run it, the inserts from my site do not work, I have done everything but I don’t know what to do now, I show a screenshot of the small test code that have
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "PassowrdHere";
$db = "DBHere";
$con = new mysqli($dbhost, $dbuser, $dbpass,$db, 3306);
echo "<pre>";
echo $con->host_info . "\n";
echo $con->connect_errno . "\n";
/* $query = "INSERT INTO `empleados`(`cedula`) VALUES ('123')";
$insert = mysqli_query($con, $query);*/
$query = "INSERT INTO `empleados`(`cedula`) VALUES ('123')";
$insert = $con->query($query);
var_dump($insert);
if (!$insert) {
$response = array(
'icon' => 'error',
'mensaje' => 'No fue posible guardar el nombre del rol.',
);
}else{
$response = array(
'icon' => 'success',
'mensaje' => 'El usuario se creo correctamente.',
);
}
echo json_encode($response);
?>
hbarnard
keneucker
keneucker
rich
santoshpatil
Aspiresoftserv
Yakin
Thejaswini-Rao-U
775c69c916d345a7a367d867078ccb
mayricoak
ndam
bc2f52583874402a988f587c00195d