PDA

View Full Version : Extracting a line from pubstats and placing it into a table.


MR_B
2nd February 2008, 06:06
Morning all,

Basically the title describes my question. :)

I'm wishing to extract a certain line from pubstats results, (the &racer=<NAME> extension) and place the specific piece of data into a table on a webpage. The page can either be in php or html format.

But I'm a complete noob as i've never had the chance/ needed to attempt something like this.

What would be my steps, and more importantly, is it possible?

Dazzle me with your wisdom :shy::tilt:

Kringle

JamesF1
2nd February 2008, 17:30
Edit Just re-read and saw you said you never have attempted something like this. Regardless, I will leave my post here for information, and link you to this tutorial (http://www.tizag.com/phpT/postget.php) for some help (you will have to find out the basis of PHP via a quick Google search, first, though :))

Using PHP, you can use $_GET[] to get variables (called GET variables) from the URL :) $_GET[] is just a simple array, where the key is the name of the variable (in this case, racer) and the value is the value that variable takes (in tis case, <NAME>).

This is presuming you have some PHP knowledge, if not - it'll take you a little longer than perhaps you've anticipated, as you'll have to learn some way to access these variables (plain HTML won't give you that functionality) :)

Dygear
4th February 2008, 19:21
I think he wants some information the last line from one action, that happens to include the &racer tag. The question would be now, I don't have any idea of the action that he wants, I think it would be &action=pst tho, and take the last line from that.