When I try to insert anything into my database it won't show any errors, but the data isn't in the database. I checked table name and structure and this is how its ment to be...
The SELECT was a tryout and that one is working properly, except for the INSERT INTO above, but why?
<?php
error_reporting(0);
require "../database/MySQL.php";
$sql = "INSERT INTO zb_employees (name, option, image_path, email) VALUES ('1', '2', '3', '4')";
$db->query($sql);
echo $db->affected_rows;
echo '<br>';
$sql = "SELECT * FROM zb_employees";
$result = $db->query($sql);
if ( $result->num_rows > 0 ) {
while($row = $result->fetch_assoc()) {
$row["name"];
}
} else {
echo "0 Employees found!";
}
$db->close();