$ Url & quot; show. php? Catshow. php & nbsp ;? Catcatid]); will the content in show. php be automatically called when the code is executed ??? In the middle? Can catid & nbsp; be written as $ url = "show. php? Catid = ". ($ row ['catid']); please advise
$ Url = "show. php? Catid = ". ($ row ['catid']);
Will the content in show. php be automatically called During code execution ??? In the middle? Can catid = be written as needed, for example, $ url = "show. php? Topic = ". ($ row ['catid']);
------ Solution --------------------
This is just to generate a string for the link. you can click it to run shop. php... the catid can be changed at will, but the variable names in the shop. php file must be consistent.
------ Solution --------------------
? Id = ". row ['catid']";
IDs can be defined at will, but row ['catid'] should be unique
When the value is passed, it depends on the parameter.
------ Solution --------------------
$ Url = "show. php? Catid = ". ($ row ['catid']);
This code assigns a value to $ url. The value is a string and the content is show. php? Catid = $ row ['catid'] content
There is no content that calls show. php.
The catid is a parameter name that can be written at will, but the page for obtaining parameters must be modified accordingly.
For example, show. php? Catid = 1 so you need to GET $ _ GET ['catid'] in show. php.
If show. php? Id = 1. you need to obtain $ _ GET ['id'] in show. php.