for(new i=0;i!= MAX_PANELS; i++){
format(query, sizeof(query), "INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')");
mysql_tquery(MySQL, query);
}
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0010 sec) |
for(new i=0;i!= MAX_PANELS; i++)
{
format(query, sizeof(query), "INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')");
mysql_tquery(MySQL, query);
printf(query); // It will print out the querry in the server log
}
[18:45:37] [MYSQL]
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
[18:45:37] INSERT INTO `para` (zID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')
CREATE TABLE IF NOT EXISTS `para` (
`pnID` int(10) NOT NULL AUTO_INCREMENT,
`pnText` varchar(24) NOT NULL,
`pnX` float NOT NULL,
`pnY` float NOT NULL,
`pnZ` float NOT NULL,
`pnRX` float NOT NULL,
`pnRY` float NOT NULL,
`pnRZ` float NOT NULL,
PRIMARY KEY (`pnID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
for(new i=0;i!= MAX_PANELS; i++) { format(query, sizeof(query), "INSERT INTO `para` (pnID, pnText, pnX, pnY, pnZ, pnRX, pnRY, pnRZ) VALUES ('0', 'Vide', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')"); mysql_tquery(MySQL, query); }