php stuff and sql

stuff