Transform output php
I have this, which is calling an integer value 开发者_开发技巧say: 2500.
echo "number_format({$row2['count(cID))";
This gives me an undesired output.
How do I fix this? How am i implementing the function wrong here? (I mean obviously I am)
If I guessed right, you want something like this:
echo number_format($row2['count(cID)']);
I suppose you are getting a column from the database and calling it 'count(cID)', but it's really hard to know what you need. Try providing more details.
Didn't you mean
echo number_format($row2[count($cId)]);
?
精彩评论