1 2 3 4 5 6 7 8 9 10 |
$sql = "INSERT INTO client_login (fname, sname) VALUES ('John', 'Doe')"; if ($db->query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . $db->error; }$db->close(); |
and very basic
1 2 3 4 5 |
$sql = "INSERT INTO client_login (fname, sname) VALUES ('John', 'Doe')"; $db->query($sql); |