php程序错误,方便的话帮我运行一下

来源:百度知道 编辑:UC知道 时间:2024/05/31 00:02:26
<?php
$id=86;
switch ($id)
{
case 86:
echo "建筑工程" ;
break;
}
?>

测试了,没问题.
我的php版本: 5.2.5

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;

自己看一看吧