fix php vars for table