$lcat_name >"; $id = $row["lcat_id"]; $name = $row["lcat_name"]; $sub_cat = $row["sub_cat"]; while ($sub_cat > 0) { $resulta= mysql_query("SELECT * FROM category WHERE lcat_id='$sub_cat'"); $lista = mysql_num_rows($resulta); $rowa = mysql_fetch_array($resulta); $ida = $rowa["lcat_id"]; $namea = $rowa["lcat_name"]; $sub_cat = $rowa["sub_cat"]; } } $navigator = $linnk . " " . $navigator; ?>
Home > $navigator
"; $resulta = mysql_query("SELECT * FROM category WHERE sub_cat='$lcat_id'"); $lista = mysql_num_rows($resulta); if ($lista != 'NULL') { echo ""; echo ""; $na=1; while ($ia < $lista) { $rowa = mysql_fetch_array($resulta); $ida = $rowa["lcat_id"]; $namea = $rowa["lcat_name"]; $sub_cat = $rowa["sub_cat"]; if ($na==4) { echo ""; echo ""; $ia++; $na=1; } else { echo ""; $na++; $ia++; } } echo "
"; echo "$namea"; echo "
"; echo "$namea"; echo "
"; } echo "
$totalnum links will be displayed.

"; } $rime = mysql_query("SELECT * from links WHERE link_val like 'yes' AND cat_id LIKE '$cat' ORDER BY link_pop DESC LIMIT $offset, $limit") or die(mysql_error()); while($row = mysql_fetch_array($rime)) { extract($row); echo " $link_name
"; echo " $link_desc
"; echo " $link_pop [Added: $date] DEAD LINK

"; } freddyShowNav($totalnum, $query, $offset, $limit); function freddyShowNav($totalnum, $query, $offset, $limit) { global $PHP_SELF; if ($totalnum > $limit) { // calculate number of pages needing links $pages = intval($totalnum/$limit); // $pages now contains int of pages needed unless there is a remainder from division if ($totalnum%$limit) $pages++; if (($offset + $limit) > $totalnum) { $lastnum = $totalnum; } else { $lastnum = ($offset + $limit); } ?>
Page
"; } return; } echo "" ?> $limit) { // calculate number of pages needing links $pages = intval($totalnum/$limit); // $pages now contains int of pages needed unless there is a remainder from division if ($totalnum%$limit) $pages++; if (($offset + $limit) > $totalnum) { $lastnum = $totalnum; } else { $lastnum = ($offset + $limit); } ?>
Page
Please fill in the following fields to add your Web site to


Category :
Link Name :
Link URL :
Description :
Keywords :
Email adrress :
0){ echo "$sitename : Add a Link

"; echo "Your link $link_url is added in $sitename.
You don't need to update link.


"; $rime2 = mysql_query("SELECT * from links WHERE link_url LIKE '$link_url'") or die(mysql_error()); while($row = mysql_fetch_array($rime2)) { extract($row); echo "
  • $link_name
    "; echo "$link_desc

  • "; echo " $link_pop [Added: $date] DEAD LINK

    "; } } else { $rime = mysql_query("SELECT lcat_name from category") or die(mysql_error()); if (($lcat_id) &&($link_name) && ($link_url) && ($link_desc) && ($link_keyword) && ($link_email)) { $rime1 = "INSERT into links VALUES ('','$lcat_id','$link_name','$link_url','$link_desc','$link_keyword','$link_email','no',NOW(),'','no','')"; $rime=$rime; $result = mysql_query($rime1); echo "$sitename : Add a Link : Thank You

    "; echo "Your link $link_name is now awaiting validation by our webmaster.

    "; echo "Please going back add next link"; } else { echo "$sitename : Add a Link

    "; echo "You did not enter any data.

    "; echo "Please going back add a link"; } } ?>
    $sitename : New Links

    "; echo "Displaying links added in the last $newdays days. $totalnum links will be displayed.

    "; while($row = mysql_fetch_array($rime)) { extract($row); echo " $link_name
    "; echo " $link_desc
    "; echo " $link_pop [Added: $date] DEAD LINK

    "; } if (mysql_num_rows($rime) == $climit) { $next_url = $start + $nolinksnew; $next = 'Next -'.$nolinksnew.''; } else { $to = $start + mysql_num_rows($rime); } $back_url = $start - $nolinksnew; $prev = ($start) ? '  Previous-'.$nolinksnew.'' : ''; echo "$next $prev"; echo "
    Show links added in the last days.
    "; ?>
    $sitename : Popular Links

    "; echo "Displaying popular links. A maximum of 100 links will be displayed.

    "; while($row = mysql_fetch_array($rime)) { extract($row); echo " $link_name
    "; echo " $link_desc
    "; echo " $link_pop [Added: $date] DEAD LINK

    "; } if (mysql_num_rows($rime) == $climit) { $next_url = $start + $nolinkspop; $next = 'Next -'.$nolinkspop.''; } else { $to = $start + mysql_num_rows($rime); } $back_url = $start - $nolinkspop; $prev = ($start) ? 'Previous-'.$nolinkspop.'' : ''; echo "$prev  $next"; ?>
    $sitename : Search Links

    "; ?>
    Search :      

    : Broken Link

    Thank you for reporting about broken Link.
    $link_name
    $link_desc
    "; echo "
    "; } ?>

    : Thank You

    Thank you for letting us know about the broken/dead link you found.


    "; } else { echo ("
    You didnt enter any data.
    "); } ?>
    $sitename : Search result"; $first = true; foreach ( $searchwords as $word ) { if ( $first ) { $first = false; $like .= " WHERE "; } elseif ( $andor == "or" ) $like .= " OR "; else $like .= " AND "; $word = chop ( $word ); $like .= "link_val = 'yes' AND (link_id LIKE '%$word%' OR link_name LIKE '%$word%' OR link_desc LIKE '%$word%' OR link_keyword LIKE '%$word%' OR link_url LIKE '%$word%' OR link_pop LIKE '%$word%')"; } $words =$word; if (strlen($words) < 3) { echo "

    WEB RESULTS for $search resulted in the following matches : $totalnum links

    "; ?>

    Search Again :      
    * Note : Last word must contain at least 3 characters.

    WEB RESULTS for $search resulted in the following matches : $totalnum links

    "; $linnk = $nolinkssearch*25; if ($totalnum <= $linnk){ $totalnum = $totalnum; }else{ $totalnum =$linnk; } $rime = mysql_query ("SELECT * FROM links $like ORDER BY link_pop DESC LIMIT $offset, $limit"); while($row = mysql_fetch_array($rime)) { extract($row); echo " $link_name
    "; echo " $link_desc
    "; echo " $link_pop [Added: $date] DEAD LINK

    "; } $query = $search; $query1 = $andor; ShowNav($totalnum, $query, $offset, $limit, $query1); ?>

    Search Again :      

    * Note : Last word must contain at least 3 characters.