[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '1'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '2'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '3'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '5'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '6'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '7'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '9'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '8'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '11'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '10'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '12'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '13'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '15'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '16'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '17'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE fID = '18'' at line 1
[13:05:46] [ERROR] cache_get_row_int - invalid data type
[13:05:46] [ERROR] cache_get_row_int - invalid data type
public LoadFraction()
{
new time = GetTickCount();
new r, f;
cache_get_data(r, f);
new idx;
for(idx = 1; idx <= r; idx++)
{
Fraction[idx][fID] = cache_get_row_int(idx-1,0, DATABASE);
Fraction[idx][fSkin][0] = cache_get_row_int(idx-1, 1, DATABASE);
Fraction[idx][fSkin][1] = cache_get_row_int(idx-1, 2, DATABASE);
Fraction[idx][fSkin][2] = cache_get_row_int(idx-1, 3, DATABASE);
Fraction[idx][fSkin][3] = cache_get_row_int(idx-1, 4, DATABASE);
Fraction[idx][fSkin][4] = cache_get_row_int(idx-1, 5, DATABASE);
Fraction[idx][fSkin][5] = cache_get_row_int(idx-1, 6, DATABASE);
Fraction[idx][fSkin][6] = cache_get_row_int(idx-1, 7, DATABASE);
Fraction[idx][fSkin][7] = cache_get_row_int(idx-1, 8, DATABASE);
Fraction[idx][fSkin][8] = cache_get_row_int(idx-1, 9, DATABASE);
Fraction[idx][fBank][0] = cache_get_row_int(idx-1, 10, DATABASE);
Fraction[idx][fSkinKolvo] = cache_get_row_int(idx-1, 11, DATABASE);
Fraction[idx][fMesto][0] = cache_get_row_float(idx-1, 12, DATABASE);
Fraction[idx][fMesto][1] = cache_get_row_float(idx-1, 13, DATABASE);
Fraction[idx][fMesto][2] = cache_get_row_float(idx-1, 14, DATABASE);
Fraction[idx][fRankMax] = cache_get_row_int(idx-1, 15, DATABASE);
Fraction[idx][fPay][0] = cache_get_row_int(idx-1, 16, DATABASE);
Fraction[idx][fPay][1] = cache_get_row_int(idx-1, 17, DATABASE);
Fraction[idx][fBank][1] = cache_get_row_int(idx-1, 18, DATABASE);
Fraction[idx][fBank][2] = cache_get_row_int(idx-1, 19, DATABASE);
TOTALFRAC++;
}
printf("[Загружено фракций]: <%i>. Потрачено: <%i мс>",TOTALFRAC,GetTickCount()-time);
return true;
}
CREATE TABLE IF NOT EXISTS `fraction` (
`fID` int(11) NOT NULL AUTO_INCREMENT,
`fSkin1` int(11) NOT NULL,
`fSkin2` int(11) NOT NULL,
`fSkin3` int(11) NOT NULL,
`fSkin4` int(11) NOT NULL,
`fSkin5` int(11) NOT NULL,
`fSkin6` int(11) NOT NULL,
`fSkin7` int(11) NOT NULL,
`fSkin8` int(11) NOT NULL,
`fSkin9` int(11) NOT NULL,
`fBank` int(11) NOT NULL,
`fSkinKolvo` int(11) NOT NULL,
`fMesto1` float NOT NULL,
`fMesto2` float NOT NULL,
`fMesto3` float NOT NULL,
`fRankMax` int(11) NOT NULL,
`fPay` int(11) NOT NULL,
`fPay2` int(11) NOT NULL,
`fBank1` int(11) NOT NULL,
`fBank2` int(11) NOT NULL,
PRIMARY KEY (`fID`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=22 ;
Ой сори не заметил.
Да из БД. PHP код:
|
Фейспалм. Вы вообще имеете представление о работе с SQL запросами?
|
Подключение к базе есть.
П.С. сам исправил уже. Был бы таким знатоком уже заметил бы, уже сам заметил и догодался ._. |