MySQL için kayıt eklediğinizde bana hata ver
$sql = "insert into fish (fish_id,common_name,scientific_name,family,range,habitate,adult_size,identification,how_to_fish,image) values ('$com_name','$scientific_name','$family','$range','$habitate','$adult_size','$identification','$how_to_fish','$TARGET_PATH')";
hata
DB veri eklemek olamazdı: Kendi SQL sözdizimi bir hata var; line 1 yakın '
range,habitate,adult_size,identification,how_to_fish,image) values ('Suwannee Ba
' kullanmak doğru sözdizimi için MySQL sunucu sürümü karşılık kılavuzunu kontrol
i sorgu dökümü zaman tüm alanların doğru olduğunu göstermektedir.
string(737) "insert into fish (catch_id,common_name,scientific_name,family,range,habitate,adult_size,identification,
how_to_fish,image) values ('','Suwannee Bass','Micropterus notius','Centrarchidae (Sunfish)','United States (Florida, Georgia)',
'Freshwater: found in Suwannee and Ochlockonee river drainages of Florida and Georgia.',
'Up to 12 oz (.34 kg).','The smallest of the Black Bass; brown with dark markings along back and sides. Adult male has blue cheeks, breast, and belly.',
'Natural or artificial bait such as spinners, spoons, crankbaits, surface plugs, and plastic worms. Also can be caught via fly fishing using bugs, streamers, and bucktails. Live bait includes worms, crayfish, leeches, and minnows.',
'localhost/fish/pics/Smallmouth bass.png')"
benim (catch_id) otomatik artım ve i catch_id takılmadan bu kontrol ama aynı sorun olduğunu unutmayın