Jump to content

Adding a int to a database


Muncey

Recommended Posts

Im having some trouble with my mysql query, basically im trying to add a integer to a field called "group". I tried:

 

$group = 6; and adding $group to the field

$group = "6"; and adding it to the field

 

also tried

 

group)VALUES('6' but again im getting a syntax error.

 

Any help please? Im pretty sure my field is set to an int so that shouldn't be the problem.

Link to comment
https://forums.phpfreaks.com/topic/60384-adding-a-int-to-a-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.