Update index.php

Some pseudo changes. Please refer to PHP mysqli manual for more details.