Posts: 566
Threads: 14
Joined: Jun 2010
Reputation:
0
What's wrong here?
Explain more your problem..
Posts: 251
Threads: 24
Joined: Apr 2007
Reputation:
0
Your pictures are just confusing.
Posts: 19
Threads: 11
Joined: Dec 2009
Reputation:
0
I god results of field NO.1 after 'mysql_fetch_field'
when using mysql_get_field(field,result)
fields is correct but every result is from "char_id"
fieldNO.1:"char_id" 50 dtype=0(dtype=MYSQL_STYLE_INT)
fieldNO.2:"account_id" 0 dtype=0(dtype=MYSQL_STYLE_INT)
fieldNO.3:"nickname" "ssadfadf" dtype=2(dtype=MYSQL_STYLE_STR)
"....something field" dtype=...
without mysql_fetch_field it gots
mysql_get_field("nickname",result),dtype=2,result output: "ssadfadf"
with mysql_fetch_field it gots
mysql_get_field("nickname",result),dtype=2,result output: "50"
or:
mysql_fetch_field(2,no2fieldname)
mysql_get_field(no2fieldname,no2result) ((output:dtpye=2(means STRING),no2result="50"))
floats it gots
mysql_get_field("hp",result),dtype=1,result output: "50.000000"
dtype is correct because field is correct,but result is wrong!so i got int:50 str:50 or float:50.000000
............My BAD ENGLISH.