Re: Query Error

From: Date: Tue, 04 Nov 2003 18:31:11 +0000
Subject: Re: Query Error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31418@lists.php.net to get a copy of this message
From: "Robert Sossomon" <robert@gcnorris.com> > The errors as it prints are: > > The query I just ran was: select * from GCN_items where > item_num = > '%fm-a294%' > The query I just ran was: Resource id #2 > 0 Those aren't errors; it's just what you asked the script to display. Your query simply isn't returning any rows. You should be using LIKE instead of the equal sign, since I assume you're looking for a pattern. select * from GCN_items where item_num LIKE '%fm-a294%' otherwise you're looking for the literal string "%fm-a294%" ---John Holmes...

« previous php.db (#31418) next »