My Page url is
http://www.example.org/index.php?option=com_used&prid=100&id=200
http://www.example.org/index.php?option=com_used&prid=100&id=201
http://www.example.org/index.php?option=com_used&prid=101&id=202
http://www.example.org/index.php?option=com_used&prid=99&id=203
Here id is unique field name
I have below code to display mobile number of seller for field column where a used toy listing id is mentioned
$db = JFactory::getDbo();
$db->setQuery("SELECT `mobile` FROM `#__used_variants` WHERE `id`='200' LIMIT 1");
return $db->loadResult();
I am unsure how to capture in id field value from url and pass in php code, so that when page id is 200 then mobile number of seller having id as 200 is shown, and wen page is 201, seller having id as 201 is shown, same for 202 and 203 and so on
Can any one help in in