[MySQL] - Extraction
#4

You can use sscanf aswell:
pawn Код:
new
  line[1], // this depends on how much data are you storing there
  query[70];

format(string, sizeof(string), "SELECT * FROM `tablename` WHERE `columnname` = '%s'", VARIABLE);
mysql_query(query);
mysql_store_result();
mysql_fetch_row_format(line, "|");
sscanf(line, "p|dsf", variable1, variable2, variable3); // This is gonna place all the data delimited by a | into those variables, note there are just 3.
mysql_free_result();
Reply


Messages In This Thread
[MySQL] - Extraction - by ErF - 24.02.2010, 11:59
Re: [MySQL] - Extraction - by TTJJ - 24.02.2010, 12:24
Re: [MySQL] - Extraction - by ErF - 24.02.2010, 13:21
Re: [MySQL] - Extraction - by Miguel - 24.02.2010, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)