phpmady Posted April 8, 2010 Share Posted April 8, 2010 Hi guys, this is the sql statement am passing in php where the value is not inserting the structure i used for Section_ID is int(11) INSERT Into sms (SMS_Name,SMS_Mobile,SMS_Email,SMS_Active,Section_ID,Country_ID,City_ID) VALUES ('asdf sa','sdaf saf','','1','1,4,3','8','2') Quote Link to comment https://forums.phpfreaks.com/topic/197999-why-value-is-not-inserting-when-the-value-is-seperated-by-comma-in-php/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 8, 2010 Share Posted April 8, 2010 '1,4,3' is not an integer. It is a comma separated list of numeric digits. Quote Link to comment https://forums.phpfreaks.com/topic/197999-why-value-is-not-inserting-when-the-value-is-seperated-by-comma-in-php/#findComment-1038967 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.