Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Databases and SQL
:
General: Databases and SQL: Re: [yogi] sql to check if value exists in DB: Edit Log
Here is the list of edits for this post
May 15, 2002, 2:27 AM
Paul
Veteran
(19537 posts)
May 15, 2002, 2:27 AM
Views: 17445
Re: [yogi] sql to check if value exists in DB
Why are you setting $id_exists to 1?
You could use the count or:
Code:
if ( $DB->table('Category')->select( { FatherID => $category_id }, 'ID' )->fetchrow ) {
print "found";
}
Last
edited
by:
Paul
: May 15, 2002, 2:28 AM
Edit Log:
Post edited by
Paul
Post edited by
Paul
(Veteran) on May 15, 2002, 2:28 AM