I am using the Database Backup script by David Walsh(http://davidwalsh.name/backup-mysql-database-php) to backup my MYSQL database as a .sql file to my server.
I cre
You have to make sure that mysql_query does not first return a non-stream. Try this:
mysql_query
.... if (false !== ($result = mysql_query('SHOW TALBES')) { while($row = mysql_fetch_row($result)) { $tables[] = $row[0]; } } else { // see Mchl's point about mysql_error }