replaced functions with mysqli_, no more errors