All pastes #459780 Raw Edit

Anonymous

public text v1 · immutable
#459780 ·published 2007-04-26 17:59 UTC
rendered paste body
Hi,
SQL/html question.
Would like to know how to make a link send a variable.

Print " <a href= details.php?$Selected=".$row['ID'] .">

Opens a details.php page, with details of the $row in a table/array.

In details.php: 

IF ($row['ID'] ==  $Selected) {
Print "".$row['0'] . "</td> ";
}

I don't know the correct syntax for this, or if you can even do it inside the <a href>, this is just a newbie's guess.