the mysqli driver seems dosen't work on my ubuntu. Use mysql driver instead.
todo: how to alert a message box in php under ajax condition?