Go Back   Dynamic Drive Forums > General Coding > ASP
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-13-2007, 05:33 PM
barryrstanton barryrstanton is offline
New Comer (less than 5 posts)
 
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
Reply With Quote
  #2  
Old 05-13-2007, 06:07 PM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

Then apparently it doesn't match.

`` around the column might help:

WHERE `column`='value'
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية
Reply With Quote
  #3  
Old 05-20-2007, 01:49 PM
mini_minh mini_minh is offline
Junior Coders
 
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?
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:17 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.