View Single Post
  #2 (permalink)  
Old 01-18-04, 05:59 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
ok ..
your code is really difficult to read so I will just explain what to do ..
all you need is to have a link like this :
PHP Code:

echo'<a href="page.php?contest=' .$var'&grade=' .$grade'">Click</a>'
and yes, you write that links just like that and pass the value of $var and $grade as you like from where ever you like ..
and then this page.php should look like this :
PHP Code:

$contest=$_GET['contest'];

$grade=$_GET['grade'];

$check=mysql_query("SELECT * FROM `2003results` WHERE Grade = '$grade' AND Contest = '$contest' ORDER BY grade, final place LIMIT 0, 50"); 
this is the concept to achive what you want ...
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]

Last edited by NeverMind; 01-18-04 at 06:01 PM.
Reply With Quote