How can i defined string for between ???

By manishkapade
Dec 21, 2007
  1. Good Morning Everybody,

    I try to post the string on a web page
    like str="dis=M01&cost=10000&style=Multi story&date=10/10/2006 &date=12/12/2006"

    in above string dis=district , Cost=price, Style=Multy stori , update date =date

    I want to give the range for the update date (i.e. from date to date)

    This will post on the form but it takes as sql querry below
    Select dis,cost,style,date from x where dis=district,cost=price,style=multi stori,date IN (10/10/2006 and 12/12/2006)

    Actual if i post through web page it takes same querry but on the place of IN it takes BETWEEN. So result not match.

    I want to pass between on the same querry . What can i give in string so it takes as a BETWEEN. If i put like above it takes as In . So what for BETWEEN.

    Manish Kapade

  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    How CGI parameters are processed, depends entirely on the server-side script. If you do not have the source code for whatever is processing the string, then there is nothing much you or we can do. (Unless the CGI script is broken and you can exploit some SQL injection vulnerability..)
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...