uses mysql instead of mysqli