Adding PHP MySQL materials