Problem with Text, LongText

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adrian Majchrzak

    #1

    Problem with Text, LongText

    Hi

    I have a little problem with my database and php. In one of my tables i've
    creted field of type Text. When i try to put some larger than 255 characters
    to this field from php, that doesnt work. Script dont want to put text to my
    table, strange. I try to chande type of this field to MediumText and
    LongText and result is the same. This script send only max 255 characters by
    field Textarea. Is this a problem whith my database or php problem with
    controls textarea ?. Plizz help

    Best regards
    Adrian Majchrzak


  • steve

    #2
    Re: Problem with Text, LongText

    "Adrian Majchrzak" wrote:[color=blue]
    > Hi
    >
    > I have a little problem with my database and php. In one of my[/color]
    tables[color=blue]
    > i’ve
    > creted field of type Text. When i try to put some larger than 255
    > characters
    > to this field from php, that doesnt work. Script dont want to put[/color]
    text[color=blue]
    > to my
    > table, strange. I try to chande type of this field to MediumText[/color]
    and[color=blue]
    > LongText and result is the same. This script send only max 255
    > characters by
    > field Textarea. Is this a problem whith my database or php problem
    > with
    > controls textarea ?. Plizz help
    >
    > Best regards
    > Adrian Majchrzak[/color]

    Adrian, I think you may have some non-escaped characters in your input
    text. Have you tried to input only alphanumerics, and see what
    happens.

    But in general, why don’t you write a sql statemetn with data over 255
    characters, and see the db accepts them. The same way, why not see
    what comes back from the form, and if you can type in more than 255
    chars -which you should be able to. At least this way, you can
    isolate the problem.

    --
    http://www.dbForumz.com/ This article was posted by author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: http://www.dbForumz.com/mySQL-Proble...ict140585.html
    Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=470431

    Comment

    • CryingClinton

      #3
      Re: Problem with Text, LongText

      "steve" <UseLinkToEmail @dbForumz.com> дÈëÓʼþ
      news:4122d201$1 _3@news.athenan ews.com...[color=blue]
      > "Adrian Majchrzak" wrote:[color=green]
      > > Hi
      > >
      > > I have a little problem with my database and php. In one of my[/color]
      > tables[color=green]
      > > i’ve
      > > creted field of type Text. When i try to put some larger than 255
      > > characters
      > > to this field from php, that doesnt work. Script dont want to put[/color]
      > text[color=green]
      > > to my
      > > table, strange. I try to chande type of this field to MediumText[/color]
      > and[color=green]
      > > LongText and result is the same. This script send only max 255
      > > characters by
      > > field Textarea. Is this a problem whith my database or php problem
      > > with
      > > controls textarea ?. Plizz help
      > >
      > > Best regards
      > > Adrian Majchrzak[/color]
      >
      > Adrian, I think you may have some non-escaped characters in your input
      > text. Have you tried to input only alphanumerics, and see what
      > happens.
      >
      > But in general, why don’t you write a sql statemetn with data over 255
      > characters, and see the db accepts them. The same way, why not see
      > what comes back from the form, and if you can type in more than 255
      > chars -which you should be able to. At least this way, you can
      > isolate the problem.
      >
      > --
      > http://www.dbForumz.com/ This article was posted by author's request
      > Articles individually checked for conformance to usenet standards
      > Topic URL:[/color]
      http://www.dbForumz.com/mySQL-Proble...ict140585.html[color=blue]
      > Visit Topic URL to contact author (reg. req'd). Report abuse:[/color]


      Yes, may not be the field setting.

      ccton
      --
      http://www.vicdir.com


      Comment

      Working...