PHP Work- Started Data Manipulation Code