HELP with getting coordinates into MSQL
#5

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:

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

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.
Reply


Messages In This Thread
HELP with getting coordinates into MSQL - by Type-R - 13.12.2012, 01:26
Re: HELP with getting coordinates into MSQL - by ReneG - 13.12.2012, 02:22
Re: HELP with getting coordinates into MSQL - by Vince - 13.12.2012, 05:03
Re: HELP with getting coordinates into MSQL - by Type-R - 19.12.2012, 01:52
Re: HELP with getting coordinates into MSQL - by Sinner - 19.12.2012, 05:31
Re: HELP with getting coordinates into MSQL - by Type-R - 21.12.2012, 02:32
Re: HELP with getting coordinates into MSQL - by ReneG - 21.12.2012, 03:14
Re: HELP with getting coordinates into MSQL - by Type-R - 21.12.2012, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)