Php 使用未定义的常量会导致定义语言值出错
我一直收到这个错误消息PHP注意使用未定义的常量_OTO_YIL_SEC-假设在 我的代码如下:Php 使用未定义的常量会导致定义语言值出错,php,syntax-error,notice,Php,Syntax Error,Notice,我一直收到这个错误消息PHP注意使用未定义的常量_OTO_YIL_SEC-假设在 我的代码如下: define('_OTO_YIL_SEC','Model Yılı Seç'); echo SelectGenel (_OTO_YIL_SEC,'yil','oto_yil','order by yil desc',intval($_GET['yil']) ); 当我试图使用quetos但它不起作用时,如何使用define value for来避免使用未定义的常量error呢。当我使用引号时,它
define('_OTO_YIL_SEC','Model Yılı Seç');
echo SelectGenel (_OTO_YIL_SEC,'yil','oto_yil','order by yil desc',intval($_GET['yil']) );
当我试图使用quetos但它不起作用时,如何使用define value for来避免使用未定义的常量error呢。当我使用引号时,它表现为字符串而不是值
define('_OTO_YIL_SEC','Model Yılı Seç');
echo SelectGenel (""._OTO_YIL_SEC."",'yil','oto_yil','order by yil desc',intval($_GET['yil']) );
“OTO_YIL_SEC”为我工作