I'm beginner in php and I don't understand what is means the 'cid=' -


i'm beginner in php , don't understand means 'cid=' , example have php page 'view_category.php' , saw in youtube video expalined write
<a href='view_category.php?cid="$id."

i don't understand how working? how page create? create view_category, how possible see pages difference id.

the 'cid=' not constant in php can value name or name. referred url parameters. value of url parameter can fetched using $_get[''] method

when click link "<a href='view_category.php?cid=".$id."'> link </a>" browser open page url looking

www.domain.com?cid=5  

then using php may value of url parameter cid

$valueofparameter = $_get['cid']; 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -