I'm trying to make a script when the Online Database is not available or the internet connection is interrupted it will save in the localhost database. I'm using PDO
This is what I'm trying to do
try
{
DBOnline (Insert values)
DBLocalhost(insert values)
}
catch(I dunno what to put here)
{
DB Localhost (save all)
}
Thank you Sir Mam