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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:12:31+00:00 2026-06-04T07:12:31+00:00

I am looking to parse some database information through a URL. Im not sure

  • 0

I am looking to parse some database information through a URL. Im not sure how exactly to do it.

Each event entry listed at the bottom of the page should include a
hyperlink that will take the administrator to a new web form for recording results for that event. The
EventID is passed via a query string parameter, e.g. RecordResults.php?EventID=4.

How exactly would I go about doing this?

Thanks for your help!
Cheers

  • 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-04T07:12:32+00:00Added an answer on June 4, 2026 at 7:12 am

    Try something like this in RecordResults.php:

    // Get id from URL
    $id = mysql_real_escape_string( $_GET['EventID'] );
    
    // If id is number
    if( (int)$id == $id && (int)$id > 0 ) {
    
         // Database connection and select database
         $link = mysql_connect('localhost','db_username','db_password')
         mysql_select_db('db_name', $link);
    
         // Get record from database
         $sql = 'SELECT * FROM tablename WHERE EventID=' . $id;
         $result = mysql_query( $sql, $link );    
         $row = mysql_fetch_array( $result );
    
         // Show record with HTML here 
         print_r( $row );
    
    } else {
    
       echo "Record not found";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some code that needs to scan through a hierarchical database schema, looking
I'm looking to parse some CXML in PHP...basically all I'm looking to get the
I've spent some time today looking for a pure ruby library that will parse
I am looking for some direction for how to parse an email using nokogiri.
I'm looking to parse some formatting out of a field using javascript. My rule
I'm looking to add some new functionality to an existing application (database is Microsoft
I am looking for a good Python PDF library that would parse some format
I am trying to store recurrence event information into a database. I want to
I am looking to write some pseudo-code of a recursive descent parser. Now, I
I'm looking to parse an xhtml document with Microsoft.XMLHTTP with XPATH in VBScript. I

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.