Sybase SQL Anywhere |
||||||||||
|
PHP SampleBefore you can run the sample, you will need to create the employee table in your Sybase account.
In this example, we assume the Sybase account id is 'example' and password is 'sample'. "; else echo " Error adding an employee. "; // select $result = sqlanywhere_query($conn, "select id, name from employee"); while ($row = sqlanywhere_fetch_array($result)) { echo "Id = ", $row[id], ", Name = ", $row[name], " \n"; } // delete if (sqlanywhere_execute($conn, "delete from employee")) echo "Succcessfully deleted all employees. "; else echo "Error deleting employees. "; // commit sqlanywhere_commit($conn); // disconnect sqlanywhere_disconnect($conn); ?> |
|||||||||