Results 1 to 3 of 3

Thread: Help asp sql

  1. #1
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help asp sql

    Hay Ho
    trying to access a record in sql table, can get all records using select statement but trying to search for a perticular record using select where, this cause page to fail to load.
    Example1- mystr="select* from bla bla" no problems
    Example2- mystr="select * from blabla where boho='somthing'" this fails!
    Any help would be cooooool.
    Barry

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Then apparently it doesn't match.

    `` around the column might help:

    WHERE `column`='value'
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Sep 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i'm doing the same thing but it works for me...
    maybe u have conflicting data types...
    eg boho might have data type int
    and ur trying to search for a char?

Bookmarks

Posting Permissions

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