Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3810058
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:24:04+00:00 2026-05-19T15:24:04+00:00

so this is how index.php looks like: <div id=wrapper> <div id=header> <div id=logo> <h1>…</h1>

  • 0

so this is how index.php looks like:

<div id="wrapper"> 
    <div id="header"> 
        <div id="logo"> 
            <h1>...</h1> 
        </div> 
        <div id="nav-bar"> 
        ...
        </div> 
    </div> 
    <div id="content"> 
        <div id="main"> 
            <div id="posts"> 
                ...
            </div> 
            <div id="pages"> 
                ...
            </div> 
        </div> 
        <div id="countries"> 
             <ul> 
                <li></li>  
                ...            
             </ul> 
        </div> 
    </div> 
        <div id="adverts"> 
            ...
        </div> 

and then i call ajax function ajax.query("page.php?category=culture&limit=5&c=1","content") to change “content” div.
this is how actual page.php looks like:

<?php
    include 'class/mysql.php';
    $mysql=new connection();

    $rows=count($mysql->db->query("select url from video")->fetchAll());
    $url='page.php?';
    $div='"main"';
    $limit=5;


    if(isset($_GET['category'])&&(!isset($_GET['country']))){
        $query='select video.url from video inner join videoCat on video.url=videoCat.url
            where category="'.$_GET['category'].'" group by postDate desc limit ';
        $rows=count($mysql->db->query("select video.url from video inner join videoCat
                on video.url=videoCat.url where category='{$_GET['category']}'")->fetchAll());
        $url='page.php?category='.$_GET['category'].'&';
    }

    if(isset($_GET['category'])&&isset($_GET['country'])){
        $query='select video.url from video inner join videoCat on video.url=videoCat.url
            where category="'.$_GET['category'].'" and country="'.$_GET['country'].'"group by postDate desc limit ';
        $rows=count($mysql->db->query("select video.url from video inner join videoCat
                on video.url=videoCat.url where category='{$_GET['category']}' and country='{$_GET['country']}'")->fetchAll());
        $url='page.php?category='.$_GET['category'].'&country='.$_GET['category'].'&';
    }

    $output=$mysql->db->query($query.$_GET['limit'])->fetchAll();
    if(isset($_GET['c'])) echo '<div id="main">';
    echo '<div id="posts">';
    foreach($output as $i => $result){
        preg_match('/[a-zA-Z0-9-_]{11}/',$result['url'],$match);
        echo '<p><object width="95%" height="55%"><param name="movie"
            value="http://www.youtube.com/v/'.$match[0].'?fs=1&amp;hl=en_US&rel=0">
            </param><param name="allowFullScreen" value="true"></param>
            <param name="allowscriptaccess" value="always"></param>
            <embed src="http://www.youtube.com/v/'.$match[0].'?fs=1&amp;hl=en_US&rel=0"
            type="application/x-shockwave-flash" allowscriptaccess="always"
            allowfullscreen="true" width="95%" height="55%"></embed></object></p><br/>';
    }
    echo '</div>';

    echo '<div id="pages">';
    for($i=0;$i<=(int)($rows/$limit);$i++){
        if($i==(int)($rows/$limit)&&($rows%$limit==0))
            break;
        $_limit=$limit*$i.','.$limit;
        $_url='"'.$url.'limit='.$_limit.'"';
        echo "<a href='javascript:ajax.query({$_url},{$div})'>".($i+1)." </a>";
    }
    echo '<br/><br/></div></div>';
    if(isset($_GET['c'])) echo '</div>';

    if(isset($_GET['c'])) {
        echo '<div id="countries"><ul>';
        $output=$mysql->db->query("select country,count(country) from video inner join videoCat
            on video.url=videoCat.url where category='{$_GET['category']}' and
            country='{$_GET['country']}' group by country asc")->fetchAll();
        foreach($output as $result){
            $_url='"'.$url.'limit='.$limit;
            echo "<li><a href='javascript:ajax.query({$_url},{$div})'>
            {$result['country']}</a>({$result['count(country)']})</li>";
        }
        echo '</ul></div>';
    }
?>

in the end my page looks almost fine except that <div id='countries'> is missing.
here is the link to the page
many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T15:24:05+00:00Added an answer on May 19, 2026 at 3:24 pm

    You look for a variable c

    if(isset($_GET['c']))
    

    which isn’t provided, the variable is called ‘country’ (reported by firebug’s network-tab)

    http://lookaroundyou.net/page.php?limit=1&country=croatia
    http://lookaroundyou.net/page.php?limit=1&c=croatia

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make my header looks like this: http://wareztuga.ws/index.php and i was wondering
http://smiths-heimann.az/index.php?feat=1 please check out this page. My php code looks like that. <?php /*at
I have an PHP array that looks something like this: Index Key Value [0]
I have a htaccess which looks like this: RewriteEngine on RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) RewriteCond
The file structure looks like this root root/x root/x/y.php root/index.php .htaccess code RewriteRule (.*)
I have horrible URLs like this: http://example.com/subfolder/index.php?a=1&b=1&token=8d519decbe60db44154b1fbc8c553ac4 I am trying to make it look
I have a folder structure like this: /articles .index.php .second.php .third.php .fourth.php If I'm
I wanna rewrite links like index.php?page=entry&id=15&action=edit to entry/15/edit . This is how my .htaccess
Hello I have some HTML that looks like this, <div id=music_interests> <ul class=interests> <li
So I have a menu in a php file that looks like this (This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.