Results 1 to 3 of 3

Thread: asp sql help pleeease going bald

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    22
    hi can anyone help i want to give the user the option to order how data is displayed

    got a html form:
    <select name="order">
    <option value="date">date</option>
    <option value="price">price</option>
    <option value="size">size</option>

    </select>

    and the SQL statement is:
    SQL ="SELECT * FROM surfboardtable ORDER BY request.form("order") "

    i get a expected end of statement error ive tried all sorts of other syntaxs i a newbie please be gentle

    cheers
    hairless

    while im here does anyone know how to limit the amount you can eneter into a <textarea> field have tried maxlength but doesnt work i can just keep typing away i want to limit it because only allow 120 characters to be displayed in my database

  2. #2
    New Member
    Join Date
    Feb 2001
    Posts
    12

    Smile

    Lo, try this:

    SQL ="SELECT * FROM surfboardtable ORDER BY " & request.form("order") & ";"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    22
    cheers jed been trying to work that out for days just didnt have the ;

    mucho gracias
    mick

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