28.01.2012, 09:39
THe code looks good, maybe you have 2 records with the same name? Try:
PHP код:
echo "We found ".$count." rows"; // debug
if($count >= 1) {
...
} else {
...
}