1. Why the **** u r using odbc_connect? x_X
2. Databasebackupscript...
Why?
Rightclick on Database -> Backup
OR
Use my Backupmanager.
Edit:
mysql_real_escape_string ?!
This is Microsoft SQL, not MySQL...
I dunno if it is working, but ... Its MSSQL, not MySQL