Strange behaviour... tested on version 1.5.4 - 1.5.5 - 1.5.6 & php 5.6 / 7.1:
When doing an $medoo->update(), the $medoo->rowCount() always returned me NULL even if there's an update or not.
My IDE is telling me thant the rowCount() arent known in medoo (phpStorm) even if came from PDO.
the query is : UPDATE users SET token_generatepassword = 'test' WHERE id = 1 and its working when i execute it manually in phpmyadmin.
When using $medoo->debug() it's returning me this :
_Warning: Invalid argument supplied for foreach() in \path_tolibraries\medoo\src\Medoo.php on line 319
i even test with $medo->query()... same result.
I dont want to make 2 queries (1 select and 1 for the update) just to see if id=1 returned me a valid result or not before making an update... Any help is more than welcome !
Strange behaviour... tested on version 1.5.4 - 1.5.5 - 1.5.6 & php 5.6 / 7.1:
_Warning: Invalid argument supplied for foreach() in \path_tolibraries\medoo\src\Medoo.php on line 319
i even test with $medo->query()... same result.
I dont want to make 2 queries (1 select and 1 for the update) just to see if id=1 returned me a valid result or not before making an update... Any help is more than welcome !