- or download this
TABLE_STUFF
~~~~~~~~~~~~~~~~~~~~
ID (pk)
name
parent_ID
- or download this
TABLE_STUFF
~~~~~~~~~~~~~~~~~~~~
...
rght
depth
lineage
- or download this
sub rebuild_tree
{
...
$sth2->execute($left, $right, $dir_ID);
return $right + 1;
}
- or download this
use vars qw($sth);
....
# And then in the function
$sth || = $dbh->prepare($sql);
- or download this
DBD::mysql::st fetchrow_arrayref failed: fetch() without execute()