Fixed Select And Update for PHP App