19.12.2012, 05:31
Are your table columns defined as the type FLOAT? If you're inserting a floating point number but the column types are strings this still won't work.
eg:
Also, why do you only do CheckMySQL(); in one of the if() statements? Shouldn't you do that at the beginning?
If you're not sure if the query is running, try it manually in phpMyAdmin and see if it returns errors.
eg:
PHP код:
CREATE TABLE tbl (
vargas VARCHAR(24), // VARCHAR for names
afkX FLOAT NOT NULL, // Not VARCHAR
afkY FLOAT NOT NULL, // but FLOAT
afkZ FLOAT NOT NULL
)
If you're not sure if the query is running, try it manually in phpMyAdmin and see if it returns errors.