In MySQL table, only one line of data
I can use the
mysql_store_result Access to the results (this is the outcome of a line)
I also know that use
MYSQL_FIELD * db_field=NULL; For (int I=0; Db_field=mysql_fetch_field (db_res); I++) { } Can traverse fields, of course, also can traverse the field name
How to have a field name direct access to the corresponding value?
Do you have any good method?
CodePudding user response:
According to the field name column number, first...
CodePudding user response:
reference 1st floor zgl7903 response: first according to the field name column number,... How to get the serial number, and then get the value? CodePudding user response:
reference 1st floor zgl7903 response: first according to the field name column number,... Then, according to the serial number with mysql_query performs a select query statement? CodePudding user response:
reference 1st floor zgl7903 response: first according to the field name column number,... Oh, again according to MYSQL_ROW obtain corresponding char * value, then converted into the format of the value you need is this meaning? Thank you for the