$ Url = "show. php? Catid = ". ($ row ['catid']); instructions-php Tutorial

Source: Internet
Author: User
$ Urlshow. php? Catcatid]); $ 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']);


Reply to discussion (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.

? 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.

$ 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.