20.05.2016, 17:06
Quote:
extracted_ID should not be an array as the "i" specifier is expecting an integer. Do it just like my example.
|
PHP код:
new extracted_ID;
sscanf(inputtext, "'LotteryID:'i{s[128]}", extracted_ID);
mysql_format(MySQLPipeline, iQuery, sizeof(iQuery), "SELECT * FROM `lotteries` WHERE `ID` = '%d'", extracted_ID);
printf("ID: %i", extracted_ID);
:/