Php ifelse question ??? I am a newbie. today I am modifying a PHP source code because I want to use a PHP IFelse. I hope you can help me. Link. php? When idabc does not have abc, that is, when the id value is null, the system prompts that the parameter is incorrect. when the id value is not empty, the system executes link. php? How to write the idabc statement? ------ Solution -------------------- php if else question ???
I am a newbie. today I am modifying a PHP source code because I want to use a php if else. I hope you can help me.
Link. php? Id = abc when no abc is available, that is, if the value of id is null, the system prompts that the parameter is incorrect. if the value of id is not empty, link. php is executed? Id = abc
How to write this statement?
------ Solution --------------------
If (isset ($ _ GET ['id']) {
// Has an id
} Else {
// No id prompt code
}
------ Solution --------------------
PHP code
If (isset ($ _ GET ['id']) {// Has id} else {// No id prompt code}