MYSQL INSERT - "0 rows inserted". Any suggestions why is that? -


insert fields (id_region, id_fields_info, subsidy_dka, id_rents_dka, type_uses, id_rented_from, id_categories, id_farmer, id_season)  select      regions.id,         fields_info.id ,         120,     rents_dka.rent_dka,          "собствена",     rented_froms.id,          categories.id_category,          farmers.id,          seasons.id  regions, fields_info, rents_dka, rented_froms, categories, farmers,     seasons          region = "Азмък" ,         field_num = 2222 ,         rent_dka = 60 ,         name = "Десислав" ,         id_category = 3 ,         name = "Десислав" ,         season = "2012-2013" 

so have these tables:

regions, fields_info, rents_dka,  rented_froms,  categories,  farmers,  seasons 

and filled data.
i've made form user fills fields data these tables, i've mentioned, , when submit button clicked want fill table fields in mysql id's data, user had entered.

to spot problem, i'd proceed follow:

  • execute insert without cyrillic
  • remove and
  • make default insert default values

if "0 rows inserted" means syntax correct, clause fails find matching entry. suspect problem , cyrillic. remove ands until query finds entries


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -