Amend PHP script for live data