I am need of some help. Here is what I am trying to do:
I have a dynamic table generated with information for a mySQL query.
This isn't the entire file, only snippet's that I think are relevant.
//issues.php
echo "<tr><td>$myrow[21]</td><td>$myrow[0]</td><td>$myrow[22]</td><td>$myrow[3]</td><td>$myrow[4]</td><td>
<a href=\"ticket.php?name=$myrow[21]\">edit</a></td></tr>";
When the edit button is selected, this open a file named ticket.php, the URL is ticket.php?name=02-0822-5 or whatever the ticket ID is that I select.
Here is a snippet from ticket.php
echo "select * from tickets where ID = $name";
This is just a test to see if the argument is even passed. I am planning on putting a SQL query once I can see it is working.
This is the query I tried but it doesn't work.
$result = mysql_query("select * from tickets where ID = $_POST['name'];", $db);
For some reason I can't get the $name from the URL, can someone help me out with this?
Thanks,
Josh