You'd have to use an SQL server and configure the webserver to work with that (or use some PhP API that supports remote SQL databases).
EDIT:
Technically, there's some HTML5/JavaScript API or something that allows for local database access, but I highly doubt you're going to get that to work with local SQL.