How many replies can we get??

Status
Not open for further replies.
Originally posted by gt2_gs
So it would be like this:


function inputreplace($old)
{
while ($myrow = mysql_fetch_row($result)) {
printf("<tr><td>%s %s</td><td>%s</td></tr>\n", $myrow[1], $myrow[2], $myrow[3]);
}
return $new;
}
$racerlist = mysql_query("SELECT * FROM `Racerlist` ORDER BY `Points` DESC",$sdb);
$string = "{input}";
$content = str_replace($string, inputreplace($string), $haystack);
echo $content;

Hmm. I think you're getting there. I'm assuming that $racerlist is the haystack. And you'll need to work on the inputreplace function, because that's writing out to the browser, not the $new string. But you're definitely on the right lines now. :)
 
Right!

Enough of the free consultancy! It's time for me to go to bed!

Night y'all.

:sleep:
 
.
 

Attachments

  • blair.jpg
    blair.jpg
    7.4 KB · Views: 51
yes... i'm still trying to swallow what happened in Salt Lake... bunch of crappy judges...
 
Originally posted by gt2_gs


Why, what happened?

I was watching Figure skating couples with my girlfriend... the Russians were first, as usual... Then came the only guys that could take gold from them, Salé and Pelletier, the Canadian couple... they're performance was spot on, the announcers said it was perfect, they were the gold medalists, etc... it's true, they were perfect... but there's the stupid russian judge who placed them 2nd... just because they would have beaten the russians... How unfair!!

btw, if you want a better side of the story, check Deathhawk's thread on Olympics and politics... i resumed pretty badly...
 
sorry...

nice thing for the men's half pipe!!! USA 1-2-3!! i think that's a first, whole podium took by the same country.
 
Status
Not open for further replies.

Latest Posts

Back