/    Sign up×
Community /Pin to ProfileBookmark

2 Different Types Of Golf Courses

Hi, i am developing a website for a golf course. The Golf Course actually has 2 different playing courses, The Beach Course and the Woodland Course.

The site allows the users to enter in their score and complete a small questionnaire each time they play SO they must choose a course each time before they start entering their information…

NOTE: i have created 2 separate tables for each course as they have a lot of different attributes… also one user can enter several scores for both courses over a period of time.

[B]My Question Is:[/B]

The user can email each of their score profiles to other members and friends and their scores can also be accessible from their profile, so how should i control the IDs for each course considering their is 2 different tables… should i just display it as [url]www.website.com/course[/url][COLOR=”#FF0000″][B]A[/B][/COLOR].php?id=12345 and [url]www.website.com/course[/url][COLOR=”#FF0000″][B]B[/B][/COLOR].php?id=13225 OR is there a way in which i can display them without having to use A and B – thanks in advance

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@hamburglarFeb 29.2012 — If you do not want to use 2 separate pages for process the course then you can pass another id alongside the unique id.

For course a:
[code=php] www.website.com/course.php?id=12345&course_id=A[/code]

Course b:

[code=php] www.website.com/course.php?id=12345&course_id=B[/code]

Use $_GET['course_id'] alongside an "if statement" to determine how to process the page. each course has the same data calculations except for the name, then just use the if statement to change the name.

I hope this helps.
Copy linkTweet thisAlerts:
@oo7mlauthorFeb 29.2012 — Excellent, thanks for your help... does this leave any whole open in security
Copy linkTweet thisAlerts:
@WyCnetFeb 29.2012 — You will need the date the round of golf was played, or is being played.

This makes an excellent mobile APP.

Scores can be entered during or after the round of golf, which implies two types of input forms.

ID=MEMBERid, courseID, date, GROUPid.

GROUPid=courseID,date,(MEMBERid-john,MEMBERid-David,MEMBERid-Michele)
[/quote]

A good way to offer group rates!

Make more money then sleep some more...
Copy linkTweet thisAlerts:
@NogDogFeb 29.2012 — Just make sure you have a default logic path for when the page is called with either an invalid course ID or no course ID. ?
Copy linkTweet thisAlerts:
@oo7mlauthorFeb 29.2012 — Ok cool, thanks all...
Copy linkTweet thisAlerts:
@waynehillJan 26.2023 — 
  • 1. [Links Courses](https://golfwatchcenter.com/best-golf-course-gps-watch/): Links courses are situated on the coast and are characterized by their open and rolling terrain. These courses feature deep bunkers, thick roughs, and several natural hazards.


  • 2. Parkland Courses: Parkland courses are typically found in more inland locations and feature a park-like aesthetic. These courses typically feature more trees, fairways, and water hazards. They are often more manicured than links courses and offer a more traditional golf experience.
  • ×

    Success!

    Help @oo7ml spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...