bad SQL Error

Results 1 to 2 of 2
  1. #1
    Member Turion123456 is offline
    MemberRank
    Aug 2008 Join Date
    62Posts

    bad SQL Error

    Hy

    Can everyone help by the follow error ...

    Code:
    SQL Error
    
    Incorrect integer value: '' for column 'metal_perhour' at row 1
    INSERT INTO game_planets SET `name` = 'Estustil', `id_owner` = '5', `galaxy` = '1', `system` = '1', `planet` = '10', `last_update` = '1235035227', `planet_type` = '1', `image` = 'wasserplanet03', `diameter` = '12750', `field_max` = '163', `temp_min` = '-9', `temp_max` = '31', `metal` = '500', `metal_perhour` = '', `metal_max` = '1000000', `crystal` = '500', `crystal_perhour` = '', `crystal_max` = '1000000', `deuterium` = '500', `deuterium_perhour` = '', `deuterium_max` = '1000000';
    This error occurs when someone has registered


  2. #2
    Account Upgraded | Title Enabled! IQstim is offline
    MemberRank
    Jan 2009 Join Date
    632Posts

    Re: bad SQL Error

    By assigning the parameter '', your basically telling MySQL that it's a string although it's not. It's an integer therefor it's real not a string.

    Input something between the quotes `metal_perhour` = '' or if the error still persist try removing the quotes and put a real integer instead.



Advertisement