Home >Backend Development >PHP Tutorial >php echo输出有关问题

php echo输出有关问题

WBOY
WBOYOriginal
2016-06-13 10:37:26871browse

php echo输出问题
switch($_obj['news_sb'])
{
case $_obj['news_sb']=='A':echo "无操作";break;
/*
以下那句出错
*/
case $_obj['news_sb']=='D':echo"'>"删除;break;//这句出错,报错原因是 ECHO ""出错。
}
?>
请那位大侠帮帮忙改正,谢谢!


------解决方案--------------------

PHP code
switch ($_obj['news_sb']) {    case $_obj['news_sb'] == 'A':        echo "无操作";        break;    /*    以下那句出错    */    case $_obj['news_sb'] == 'D':        echo"<a href="Admin_product_Dellist.php?X_PD_EO=" . base64_encode>删除</a>";        break; //这句出错,报错原因是 ECHO "<a href="">"</a>出错。}<br><font color="#e78608">------解决方案--------------------</font><br>肯定错了啊!<br><br>echo"<a href="Admin_product_Dellist.php?X_PD_EO=<?php%20echo%20base64_encode(%24_obj%5B" id>'>"删除</a>;break;<br><br>你这个引号放错位置了。<br><font color="#e78608">------解决方案--------------------</font><br>把这句去掉,你嵌套错了<br><?php echo base64_encode($_obj['ID']);?><br>改为<br>echo"<a href="Admin_product_Dellist.php?X_PD_EO=%20" .base64_encode>"<div class="clear">
                 
              
              
        
            </div></a>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn