All pastes #790 Raw Edit

Anonymous

public text v1 · immutable
#790 ·published 2004-08-30 14:38 UTC
rendered paste body
struct phonecard {
	int *cardid;
	char number[13];
	int *credit;
	int *ratechangepercent;
	int *ratechangestatic;
	int *connectcharge;
	int *increment;
	int *inuse;
	int *expire;
	int *active;
	char *callerid;
};

/* put the values into the structure */
row = mysql_fetch_row(result);

card->cardid = row[0];
card->credit = row[1];
card->ratechangepercent = row[2];
card->ratechangestatic = row[3];
card->connectcharge = row[4];
card->increment = row[5];
card->inuse = row[6];
card->expire = row[7];
card->active = row[8];