sorry i a begginer of php. I have url example here: http://example.com?category=software-hardware .Actual of category is Software & Hardware I using this script to get url above
foreach ( $key as $value ) {
$c = array(' ', '&-');
$d = array('-', '');
echo "<a href=\"category/".strtolower(str_replace($c, $d, $value->kategori_laporan))."\" class=\"list-group-item\">".$value->kategori_laporan."</a>";
}
How To get data from my condition url.? Sorry, i bad using english. I want to create url like category from slideshare. Please help me.! Thanks.!
$category = $_GET["category"]. Also check out this link to see if it helps clear things up php.net/manual/en/reserved.variables.get.php$value->kategori_laporan<- that part is strange too! Why is$valuean Object with the propertykategori_laporan? Reedit / Repost your question :)