mysql 질문입니다
글쓴이: lamu / 작성시간: 금, 2018/07/06 - 12:24오후
result = mysql_store_result(conn);
int num_fields = mysql_num_fields(result);
while(row = mysql_fetch_row(result))
{
for(i = 0; i < num_fields; i++)
{
strcpy(n.name, row[0]);
n.age = atoi(row[1]);
n.sex = atoi(row[2]);
}
}
데이터베이스 자료를 다 못 뽑아오고 1줄만 뽑아오는데 어떻게 수정해야 하나요??
File attachments:
첨부 | 파일 크기 |
---|---|
![]() | 3.08 KB |
Forums:
while (... mysql_fetch_row()
while (... mysql_fetch_row() ... ) {
...
}
send(...)
댓글 달기