Passing variable through the URL

From: Aaron Jackson (aaronljackson_at_ntlworld.com)
Date: 07/27/04


Date: Tue, 27 Jul 2004 10:10:12 GMT

Trying all day now to try and crack this but it just refuses to work, used
the following methods and many more:

$newsid = $rows[0];

echo "<a href=\"comments.php?nid=".$_GET[rows[0]]."\">Comments</a><br>";

echo "<a href=\"comments.php?nid=".$_GET[newsid]."\">Comments</a><br>";

echo "<a href=\"comments.php?nid=1\">Comments ID</a><br>";

The final one does work, yet this is no good since the value has to be done
automatically and not manually. This is really starting to get to me, the
data is being read from the database fine since the news is being displayed
fine.

Any ideas anyone?

Thanks for reading
    --Aaron



Relevant Pages

  • Re: Austin motel manager charged with molesting boys, retaliation
    ... 'Crack Corner.' ... He is charged with retaliation as well as molesting the boys because he ... Texas Cable News | TXCN.com | News for Texas ...
    (alt.true-crime)
  • Re: NBC: "You arrogant ass! Youve killed us!"
    ... imply she's a coward if she refuses to do so, ... The major Dem candidates limited themselves to the mainstream news ... media where all they usually had to face were soft-ball questions (Tim ...
    (rec.music.artists.springsteen)
  • Re: Bouncing off Poul Anderson
    ... but he refuses to provide a "hook" to keep ... me reading, I start wondering what the point of the whole exercise is, ...
    (rec.arts.sf.written)
  • Re: Why Didnt They Ask Her Fans?
    ... Reading things like /'Well, I'm the person who refuses to read DWM ... the comic strip made a tiny mistake in the route ...
    (rec.arts.drwho)
  • Re: Pikey News
    ... Not sure if this is news to anyone: ... Apparently these chaps think they can crack the copy protection on a ...
    (uk.games.video.xbox)