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

  • Home
  • SEARCH
  • 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

So I have a menu in a php file that looks like this (This
I have two DIV elements. HTML looks like this: <div id=first><div id=second></div></div> The CSS
I have code that looks like the following: <form id=MyForm name=MyForm method=post action=index.php> <input
My html is like this <div id=rsContainer> <table id=rsTable><!-- DATA HERE --></table> </div> and
I have a method in codeigniter that looks like this, public function category() {
I am doing an horizontal dropdown menu. It looks like this : [menu1][menu2][menu3][menu4] But
I have numerous index.php scripts using SEO-friendly arg format like example.com/path/to/index.php/opt/arg and would like
Working on this page: http://www.karlsenner.dreamhosters.com/about.php and having trouble with the navigation in IE6. It
I'm having a hard time figuring this one out. Seems like no matter what
I'v currently developing a php facebook canvas in an IFrame. The Idea is for

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.