28.5 Case Study: Accessing an Invoice Database
(cont.)
- If found, fetch first row, extract fields:
MYSQL_ROW row = mysql_fetch_row(result);
string custnum = row[0];
double payment = string_to_double(row[1]);
- Avoid SELECT *, in case table changes later
prev
|top
|next