Results 1 to 3 of 3

Thread: SQL

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Talking

    I'm building a search page using dreamweaver Ultradev, and it needs an SQL query string to search the database. My problem is this.

    The current query string

    Code:
    Select from Search where sHeader like '%Header&'
    only returns results which exactly match the query. How do I return results which include the query?

    THX

  2. #2
    New Member
    Join Date
    Oct 2000
    Location
    -
    Posts
    2

    Talking Joooooooooo

    I show u my handmade script, i dont know Dreamwaver Ultra Dev, sorry


    here the source:




    <%
    SET Conn = Server.CreateObject("ADODB.Connection")
    Conn.open "DSN=kunden"
    %>


    <%
    SET RS = Conn.Execute("SELECT * FROM kunden ORDER BY Name")
    SET RS1 = Conn.Execute("SELECT COUNT(ID) FROM kunden")
    %>


    'to show the first cell:

    <%=RS(0)%>


    ASPiration is the Power of Live

  3. #3

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    THX, I'll try that later!

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