亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

medoo return value problem
紅色熊貓
紅色熊貓 2019-07-26 11:00:05
0
1
1298

20190726105437.png


QQ圖片20190726105547.png




#This update operation returns the number of rows in the result $data and $data->rowCount(); what is the difference? Aren’t they both returning influence functions?


In addition: medoo update operation,

Update successful:

If the data changes, return the number of rows $data=1

If the data does not change, the number of rows returned $data=0;

Update failure:

The number of rows returned $data is also 0. How to make if judgment, update failure and update success ( (data has not changed) the return value is the same, how to write the judgment

紅色熊貓
紅色熊貓

reply all(1)
Peter-Zhu

update() performs an update operation, then the affected record stored in $data is not a PDO object;

rowCound() should be called on the pdo object;


Please check the $data type, var_dump() or gettype()

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template