Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default newbie needing help

    Guys, I've been learning for two weeks now, so bear with me :-)

    I'd like to know how to echo a formatted table using the results from three
    different tables - I can join2 using join or left join (and 'using'
    the -id), but how do I do three? Maybe my tables aren't normalised properly?
    I'll try to explain:

    My testing database is on Formula 1 results: I have three tables, one
    called tracks (track, track_id), one called drivers (driver, driver_id), and
    one called results, where I have (track_id, driver_id, laps_run, laps_led,
    points) and stuff like that. Using $result=mysql_query, and then moving the
    data to, say, $driver, $points etc, I can get driver and points (using
    driver_id), or any similar combination, but how can I get
    TRACK - DRIVER - POINTS? Track to points uses an id, driver to points uses
    an id, but track to driver doesn't.

    Hope I've explained myself, and please, apologies for just jumping in - I
    may well be back for more questions, too :-)

    Thanks,

    Colin


    Colin Harris Guest

  2. Similar Questions and Discussions

    1. Needing Flash 7
      I am installing a program which requires Flash 7.0. I can't seem to find it on the website here. Can anyone help me?
    2. needing help with shockwave 10
      :confused; I have been trying to get this program working for about 3 days now. I have tried the link from the game site, and the standalone...
    3. Needing help with results page
      I'm taking a class in Application Development with Dreamweaver MX2004 using ASP.NET. I'm working on a project for the class where I'm creating an...
    4. Absolute Newbie having problems with ASP search form and badly needing HELP if I am to remain SANE
      hi folks, I have found a script which enables me to search my mp3 db (soon my midi db which I will post on the web) but I am having trouble...
    5. Needing Help with a webpage
      Hi Some action should be done by user (such as button click) then only we know whether use has read it or not Ravikanth 2000
  3. #2

    Default Re: newbie needing help


    "Colin Harris" <c_harris01@getridofthisbit.blueyonder.co.uk> wrote in
    message news:TleUb.1595$%i5.1430@news-binary.blueyonder.co.uk...
    > Guys, I've been learning for two weeks now, so bear with me :-)
    >
    > I'd like to know how to echo a formatted table using the results from
    three
    > different tables - I can join2 using join or left join (and 'using'
    > the -id), but how do I do three? Maybe my tables aren't normalised
    properly?
    > I'll try to explain:
    >
    > My testing database is on Formula 1 results: I have three tables, one
    > called tracks (track, track_id), one called drivers (driver, driver_id),
    and
    > one called results, where I have (track_id, driver_id, laps_run, laps_led,
    > points) and stuff like that. Using $result=mysql_query, and then moving
    the
    > data to, say, $driver, $points etc, I can get driver and points (using
    > driver_id), or any similar combination, but how can I get
    > TRACK - DRIVER - POINTS? Track to points uses an id, driver to points
    uses
    > an id, but track to driver doesn't.
    >
    > Hope I've explained myself, and please, apologies for just jumping in - I
    > may well be back for more questions, too :-)
    >
    > Thanks,
    >
    > Colin
    >
    >
    select * from results, tracks, drivers
    where
    results.track_id *= tracks.track_id
    and results.driver_id *= drivers.driver_id
    and (what ever other clause you want)




    Guest

  4. #3

    Default Re: newbie needing help


    <xyzzy> wrote in message news:2a2dnR-wiOFz5bzdRVn-ug@comcast.com...
    >
    > "Colin Harris" <c_harris01@getridofthisbit.blueyonder.co.uk> wrote in
    > message news:TleUb.1595$%i5.1430@news-binary.blueyonder.co.uk...
    > > Guys, I've been learning for two weeks now, so bear with me :-)
    > >
    > > I'd like to know how to echo a formatted table using the results from
    > three
    > > different tables - I can join2 using join or left join (and 'using'
    > > the -id), but how do I do three? Maybe my tables aren't normalised
    > properly?
    > > I'll try to explain:
    > >
    > > My testing database is on Formula 1 results: I have three tables, one
    > > called tracks (track, track_id), one called drivers (driver, driver_id),
    > and
    > > one called results, where I have (track_id, driver_id, laps_run,
    laps_led,
    > > points) and stuff like that. Using $result=mysql_query, and then moving
    > the
    > > data to, say, $driver, $points etc, I can get driver and points (using
    > > driver_id), or any similar combination, but how can I get
    > > TRACK - DRIVER - POINTS? Track to points uses an id, driver to points
    > uses
    > > an id, but track to driver doesn't.
    > >
    > > Hope I've explained myself, and please, apologies for just jumping in -
    I
    > > may well be back for more questions, too :-)
    > >
    > > Thanks,
    > >
    > > Colin
    > >
    > >
    >
    > select * from results, tracks, drivers
    > where
    > results.track_id *= tracks.track_id
    > and results.driver_id *= drivers.driver_id
    > and (what ever other clause you want)
    >
    Thank you! Didn't know that!


    Colin Harris Guest

  5. #4

    Default Newbie needing help

    I am a newbie to Dreamweaver and website building all together. I am trying to
    build a form, which I ave done in the design view, but need to know how to get
    to form to be sent to (2) email addresses simultaneously and how to direct the
    user to a page that says something like "thank you we will contact you in 24
    hours". Any detailed info would be greatly appreciated! Thanks in advance!

    Justin

    jrmaier Guest

  6. #5

    Default Re: Newbie needing help

    Justin

    The code depends upon whether you are deploying on a server with an
    application server installed such as ASP, CF or PHP. If is a plain html site
    then check with your host as they may have scripts already for you to use

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "jrmaier" <webforumsuser@macromedia.com> wrote in message
    news:d70bk5$a07$1@forums.macromedia.com...
    > I am a newbie to Dreamweaver and website building all together. I am
    trying to
    > build a form, which I ave done in the design view, but need to know how to
    get
    > to form to be sent to (2) email addresses simultaneously and how to direct
    the
    > user to a page that says something like "thank you we will contact you in
    24
    > hours". Any detailed info would be greatly appreciated! Thanks in advance!
    >
    > Justin
    >

    Paul Whitham TMM Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139