php - What is meaning of 0 in mysql_result($res, 0, "id");? -
I searched on Google but found nothing that could not help me!
$ Sql = "From users where username = 'select ID'. Mysql_real_escape_string ($ u)." '"$ Res = mysql_query ($ sql); if (mysql_num_rows ($ res ) == 1) {$ id = mysql_result ($ res, 0, "id"); // Username id found} represents 0? Represents the first line (as the array starts with index 0), I believe that it returns the first username id, no matter how much it is known.
If you have PHP functions M Not have any more questions, check out the best that you first.
Comments
Post a Comment