well I have moviedatabase
and of each movie I have a description column( type=text). some are 200chars and other 800chars.
I want to be able to copy this movie in the same table. My primary key is an auto_increment.
First I get the data for that movie that is been chosen by an sqlquery.
Then when I get the data I insert that data to variables
like: $settitle, $setdescription
Then after that I do an insert query
like: insert into tblmovies (Title, Description) values('$settitle','$setdescription').
Now comes the problem when the description of the movie is less then 500chars he inserts the movie, but if it's larger then 500chars he says this:
You have an error in your SQL syntax near 's desperation for romance turns into a convoluted scheme to match Kat with her m' at line 1 at this her m'==>that is the 500th char.
The variable contains the whole description because I have printed it before the insert and there he shows all the chars even if it's more then 500 chars.
ps:I have insert the whole table with phpmyadmin and there he didn't say anything of problems.
Does somebody know why this is happening?
Is there maybe an limit on chars or something?