Friday, July 5, 2013

Warning: mysl_result() expects parameter 2 to be long, string

You may have certainly come across this problem.
To solve this problem you have to set the second parameter as zero 0 to ask mysql to start from the first row.
e.g: $res = mysql_result($comment_result, 0);

Hope it helps.

No comments:

Post a Comment