Ah huh. That's how data is passed in the query string.
You simply append a "?" to the end of the url, and then list your variables like so:
var1=2&var2=4&var3=7
where the format is variable=value, and use the "&" character to seperate variables.
note that when you didn't specify a variable name, and only a value, the variable wasn't passed. You must provide a name for all variables you pass in the query string.
Notice in this piece of code from your sample code, you didn't provide a name for the variable you were passing, only a value:
$display_block .= "<li><a href=\"showitem.php?$item_id\">
you should give it a name like so:
$display_block .= "<li><a href=\"showitem.php?items_id=$item_id\">
Then when you want to access this variable on the showitem.php script you simply access it like so:
$item_id = $_GET["item_id"];
I hope that was what you were after, I wasn't quite sure, cause your question was a bit obscure.
cya man,
- Adam 🙂