Mistři v programování na #hovnokod

PHP #238

ma stranka podstranky?

// Has sub pages?
function exists_sub_pages($page_id)
{
$select_sub_pages=mysql_query("select * from pages where parent='".$page_id."'");
if (mysql_num_rows($select_sub_pages)>0) {$result=1;} else {$result=0;}
return $result;
}

HovnoKod,