A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: database problem

  1. #1
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606

    database problem

    jow guys

    i scripted some kind of a forum in ASP
    anyway, people can leave messages and replys

    now i have 2 problems

    1. i cant store more then 255 characters in a record of my db.
    acces sais only 255 characters are allowed

    2. when someone types his reply or topic;
    his text will be generated as HTML
    so a normal return will have no effect, u have to use a <br>
    to get a return on the replys.asp page.

    NE1?

    thx guys

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    there should be a longer datatype - I think they call it "memo"
    Your input text box has html checked - just uncheck that

    Musicman

  3. #3
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606
    the input text box?
    dont see any options where i can uncheck html
    got any html code for it?

    i tried to display the content of the reply with <pre> </pre> tags
    but this is really messed up
    my css dissapear

    http://webdesigners2002.multimedi.be...pgevraagd2.asp

    need urgent help plz
    Last edited by PixelAddict; 10-14-2002 at 08:57 AM.

  4. #4
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Your page has a ODBC error, check that out first
    NuCleuZ :: PHPVolcano :: Blog

  5. #5
    ? tonytryout's Avatar
    Join Date
    Oct 2001
    Location
    Somewhere out there
    Posts
    864
    You could use something like this:
    String(Request.form("bodyMessage")).replace(/\n/g,"<BR>")
    This replaces the carriage return with a <BR> tag.

    and nucleuz is right -- you have an ODBC error -- something to do with syntax.

  6. #6
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606

  7. #7
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606
    <%var4= request.form("mes")%>
    <%var1=replace(var4,chr(13),"<br>")%>

    this works
    Last edited by PixelAddict; 10-16-2002 at 08:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center