php - Trying to insert IP address but get an error -


I am trying to include the IP address in the last (last signed integer)

 < Code> INSERT User_net (UPC, StateID, StoreID, CIID, Price, Calculation, LastIP) values ​​(885 9 0 9 37,38,1,1,1,0,0,0, INEETN (127.0.0.1) )  

Error:

1064 - There is an error in your SQL syntax;

You need to add quotes:

  User_entry (UPC, StateID, StoreID, CID, Price, Calculation, LastIP) INSERT values ​​(885 9 0301378,1,1 , 1,170,0, INET_ATON ("127.0.0.1"))  

Source:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -