DivaX007 wrote
when i run this script, i get this error:
Could not connect to mysql server
That means that the script couldn't connect the mysql server. That's self-explanatory.
That means also that either the MySQL connections parmaters were wrong, your database server is inaccessible or that it is down.
You should investigate the possible problems. This has nothing to do with Abyss Web Server and it depends on how your database is setup (and only you known that.)