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 8479381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:00:28+00:00 2026-06-10T19:00:28+00:00

When I click on any link it opens all movies in my database. I

  • 0

When I click on any link it opens all movies in my database. I want only that movie which begins with that letter and I don’t know where I’ve made a mistake. Here is my code:

$azRange = range('A', 'Z');
foreach ($azRange as $letter){
    echo '<a href="index.php?naslov='.$letter.'&task=view">'.$letter.'</a> | ';
}

if(isset($_GET["task"]) && $_GET["task"] == "view"){
    $naslov = $_GET['naslov'];

$query  = "SELECT filmovi.naslov, filmovi.godina, filmovi.trajanje, filmovi.slika
           FROM filmovi
           ORDER BY naslov";

$result = mysql_query($query) 
          or die ('SQL Greska: '.mysql_error());

if($result){
    while($filmovi = mysql_fetch_array($result)){   
        echo '<center><b>';
        echo '<td><img src="img/'.$filmovi["slika"].'" border="0" width="100" /></td>';
        echo '</br>';   
        echo '<td>'.$filmovi["naslov"].'</td>';
        echo '<td> ('.$filmovi["godina"].')</td>';
        echo '<br>';
        echo '<td>Trajanje: '.$filmovi["trajanje"].' min</td>'; 
        echo '</b></center>';
    echo '</tr>';
}
  • 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-06-10T19:00:30+00:00Added an answer on June 10, 2026 at 7:00 pm
    $query  = 
        "SELECT filmovi.naslov, filmovi.godina, filmovi.trajanje, filmovi.slika
        FROM filmovi
        WHERE naslov LIKE '$naslov%'
        ORDER BY naslov";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any jquery or any script, that when u click on one link,
I have a treeview and i want no postback on click any childnodes.And i
if i click on any checkbox all previous checkboxes must get checked my logic
I want to stop click on any links until the page is loaded. Can
I want to run a simple JavaScript function on a click without any redirection.
I'm trying to click a link & put that text into a jquery dialog
So I want my users to be able to click a link in a
Suppose we have a website in which you click on a button, and that
When we click with right mouse button on a any site link, there's a
I have a link in my menu that opens up a fancybox with some

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.