fix mysqli code