must use pwg_db_* functions instead of mysql_* ones merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6499 68402e56-0260-453c-a942-63ccdbb3a9ee