<https://forums.phpfreaks.com/topic/165217-solved-help-needed-with-passing-id-through-url/page/2/#comment-871426>
<http://schema.org/text>
"Thank you for all of your help  :-X \n  \n\n \n&lt;?php\n\nif(!isset($_GET['cat'])){\n   die(\"Category isn't specified\");\n}\n\n\n/* Enable displaying of errors */\nerror_reporting(E_ALL);\nini_set('display_errors', 'On');\n\n$cat = (int) $_GET['cat'];\n$get_items = \"SELECT * FROM poj_products WHERE cat='$cat'\";\n$get_items = mysql_query($get_items);\nif($get_items){\n   $item_row = mysql_fetch_assoc($get_items);\n   echo '&lt;a href=\"'.$sitelocation.$item_row['url'].'?item_desc='.$item_row['id'].'&gt;view details/order&lt;/a&gt;';\n   echo $_GET['cat'];\n}else{\n   die(\"Unable to connect to database.\".mysql_error());\n}\n\n?&gt;\n\n \n"
<https://forums.phpfreaks.com/topic/165217-solved-help-needed-with-passing-id-through-url/page/2/?tab=comments#comment-871506>