Dear readers,
I have two files:
file1.php and file2.php
file1.php looks like as follows:
...
echo "<a href = "\file2.php?course = ".$record->StudentID."\">course</a>";
....
file2.php
...
$get = HTTP_GET_VARS['course'];
connect($server, $user, $pass);
$query = "select * from course where StudentID like '$get'";
.....
The problem is:
The variable $get returns nothing.
I have defined StudentID as varchar[50]
I am using PHP and MySQL.
What is going on?
I need immediate help
Thank you,
Solomon