php中修改信息出现异常,信息修改不了

WBOY
Release: 2016-06-13 13:01:30
Original
1126 people have browsed it

php中修改信息出现错误,信息修改不了
页面:







error_reporting(E_ALL & ~E_NOTICE);
include_once("../include/conn.php") ;
$com_id=$_GET["com_id"] ;
$mysql="select * from com_table where com_id='$com_id'" ;
$str=mysql_fetch_object(mysql_query($mysql)) ;
$show_number=iconv("gb2312" , "utf-8//IGNORE" , $str->com_number) ;
$show_name=iconv("gb2312" , "utf-8//IGNORE" , $str->com_name) ;
$show_telephone=iconv("gb2312" , "utf-8//IGNORE" , $str->com_telephone) ;
$show_mobile=iconv("gb2312" , "utf-8//IGNORE" , $str->com_mobile) ;
$show_qq=iconv("gb2312" , "utf-8//IGNORE" , $str->com_qq) ;
?>

com_id ; ?>" />

  
    
    
  
  
    
    
  
  
    
    
  
  
    
    
  
  
    
    
  
  
    
  
账号: ">
姓名: ">
固定电话: ">
移动电话: ">
QQ: ">

  
      
   

if(isset($_POST["submit"])){
/*
$com_number=trim($_POST["com_number"]) ;
//$com_pwd=trim($_POST["password"]) ;
$com_name=trim($_POST["com_name"]) ;
$com_telephone=trim($_POST["com_telephone"]) ;
$com_mobile=trim($_POST["com_mobile"]) ;
$com_qq=trim($_POST["com_qq"]) ;
*/
$com_number=iconv("utf-8" , "gb2312//IGNORE" , $_POST["com_number"]) ;
//$com_pwd=iconv("utf-8" , "gb2312//IGNORE" , $com_pwd) ;
$com_name=iconv("utf-8" , "gb2312//IGNORE" , $_POST["com_name"]) ;
$com_telephone=iconv("utf-8" , "gb2312//IGNORE" , $_POST["com_telephone"]) ;
$com_mobile=iconv("utf-8" , "gb2312//IGNORE" , $_POST["com_mobile"]) ;
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!