değer db takılı değil

0 Cevap php

i want to store more than 1000 character in database i use mysql database.

i 1000 karakter taktığınızda i 50-100 karakteri kod çalıştırma successfully.but eklediğinizde takılı değil. Hatta o da hata vermez.

when i use similar insert query in myphpAdmin, the query run successfully. this is query

İlk iki alan varchar vardır & Son alan LongText olduğunu

INSERT INTO news (headline,date,discription)
VALUES ("hi","date","A crumbling pitch and some resurgent Indian bowling have set up a gripping deciding Test with the series lead threatening to slip out of the hosts' grasp. India had snuck ahead at the end of the third day, but were dominant by lunch on the fourth as Pragyan Ojha and Amit Mishra ran through the Sri Lankan batting. Thilan Samaraweera, the centurion from the first innings, held firm and is key to Sri Lanka's fortunes as they try to build a lead that is competitive enough to give their spinners a chance. ")

Bu myphpadmin başarıyla çalıştırmak

i php çalıştırmayı denediğinizde ama sonra cant'koşmak

php kodu

 $insert = "INSERT INTO news (headline,date,discription)
 VALUES ('".$_POST['headline']."','".$_POST['date5']."','".$_POST['discription']."')";
 $add_news = mysql_query($insert);

& Bu kod etiketi kullanımı

<textarea rows="2" cols="2" style="overflow: scroll; height: 90px; width: 635px;" name="discription"></textarea>

0 Cevap