Hi Everyone --
I'm trying to php code a page that will display the results of a record when you click on a link.
I have the page that displays all the records... here's the relevent code:
<td><font size=$FontSize><a href='view.php?id=$id'>$App</a></font></td>
(id is my primarykey)
Now, when you click on the value of $App i want it to display the detailed results in view.php
Here's view.php:
<?PHP
include "header.php";
include "dbconnect.php";
$query = "SELECT * FROM data WHERE (
(id ='$id'))";
$result = mysql_query($query)
or die ("Query Failed");
$ID = mysql_result($result, "id");
$App = mysql_result($result, "App");
$AppVersion = mysql_result($result, "AppVersion");
$Developer = mysql_result($result, "Developer");
$RegNumber = mysql_result($result,"RegNumber");
$RegName = mysql_result($result, "RegName");
$Comments = mysql_result($result, "Comments");
$OS = mysql_result($result, "OS");
$Catagory = mysql_result($result, "Catagory");
echo "$ID, $App, $AppVersion, $OS";
include "footer.php";
?>
</body>
</html>
The link will correctly display View.php but does not echo the values of my variables.
I know my code is wrong somewhere but I don't know enough of php to troubleshoot it very well.
Can anyone lend a hand?
Let me know if i'm not making any since either!
Thanks!!!