What would the code/sql to check if a value ($category_id) exists in table ('Category') under column ('FatherID')?
$id_exists = $DB->('Category')->select->('FatherID'==$category_id) ????
I might be way off on this
Thanks!
Code:
my $id_exists = 1; # 1 - Yes, 0-No in this case it is safer to defult to yes, as # this will be part of a delete function. $id_exists = $DB->('Category')->select->('FatherID'==$category_id) ????
I might be way off on this
Thanks!