Jump to content

Search the Community

Showing results for tags 'same page'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 1 result

  1. Hi again PhpFreaks, yet again I got a problem regarding coding. I want to build somewhat a score board, which shows the latest results of matches. I've build it so that it shows all the matches on my MySQL. $query = $pdo->prepare("SELECT * FROM results ORDER BY id DESC"); But i would like an option for my readers to choose a specific team, so that only matches of this specific team is shown. How would i be able to implement this feature without having to create a new page and stay on the same? Code of HTML <div class="results"> <table style="width:800px"> <?php foreach ($results as $result) { ?> <tr> <td style="background-color:grey;"><?php echo $result['date'] ?></td> <td ><?php echo $result['team1'] ?></td> <td style="background-color:green;"><?php echo $result['result1'] ?></td> <td><?php echo $result['team2'] ?></td> <td style="background-color:red;"><?php echo $result['result2'] ?></td> <td style="opacity: 0.5;"><?php echo $result['league'] ?></td> </tr> <?php } ?> </table> </div> Examples is more appreciated that explanations, I'm not that familiar with the english terms so makes it alittle harder for me to understand. Thanks alot in advance
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.