Fixed php version incompatabilities

PHP on www does not support get_result()