📜  php 未定义的数组键 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:13.650000             🧑  作者: Mango

代码示例3
$result['pay'] = TRUE;
    if($result['type'] == 1) { $sql = $db->query("SELECT * FROM `service` WHERE `type` = '1'"); }
    else if($result['type'] == 2) { $sql = $db->query("SELECT * FROM `service` WHERE `type` = '2'"); }
    else if($result['type'] == 3) { $sql = $db->query("SELECT * FROM `service` WHERE `type` = '3'"); }