那$sql = "INSERT INTO `studentmanagersystem`.`test` (`id` ,`name` )VALUES (NULL , '".$_POST['name']."')" ;
怎么可以执行啊,应该不是这个原因吧!

解决方案 »

  1.   

    但是$sql = "INSERT INTO `studentmanagersystem`.`student_info` (`UID` ,`name` ,`sex` ,`brith_year` ,`brith_month` ,`hometown` ,`nation` ,`political_pos` ,`mobilephone`)VALUES (NULL , 'yarsye', '男', '1956', '3', '安徽', '汉', '2', '145435')";
    这条语句在phpmyadmin上是都可以完全运行的,没有问题的,
    那我去按上面说的试试看吧!
      

  2.   

    $_POST['name'] 这个的问题吧。里面有特殊字符是不行的.
      

  3.   

    $result = @mysql_query($sql);
    print_r($sql);
    没有任何输出,我也想有输出错误,可是没有,晕!
    先前做的其他语句,是正确的,有输出,输出是1
      

  4.   

    我现在连直接插入数据
    $sql = "INSERT INTO `studentmanagersystem`.`student_info` (`UID` ,`name` ,`sex` ,`brith_year` ,`brith_month` ,`hometown` ,`nation` ,`political_pos` ,`mobilephone`)VALUES (NULL , 'yarsye', '男', '1956', '3', '安徽', '汉', '2', '145435')";
    都不可以,还没做用参数传过来的值呀!
    我上面也说过了,上面这条语句在PHPMYADMIN里去年是没有问题的啊,晕死了,我都要杀人,呵呵~
      

  5.   

    Warning: ociexecute(): OCIStmtExecute: ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from WEBTO in /erp/apache/htdocs/emp/today_info.php on line 57Warning: ocifetch(): OCIFetch: ORA-24374: define not done before fetch or execute and fetch in /erp/apache/htdocs/emp/today_info.php on line 58Warning: ociexecute(): OCIStmtExecute: ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from WEBTO in /erp/apache/htdocs/emp/today_info.php on line 78Warning: ocifetch(): OCIFetch: ORA-24374: define not done before fetch or execute and fetch in /erp/apache/htdocs/emp/today_info.php on line 79
    Warning: ociexecute(): OCIStmtExecute: ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from WEBTO in /erp/apache/htdocs/emp/today_info.php on line 361Warning: ocifetch(): OCIFetch: ORA-24374: define not done before fetch or execute and fetch in /erp/apache/htdocs/emp/today_info.php on line 363
    \
      

  6.   

    楼上在做什么啊?
    --------------
    问题找到了是中文编码问题,我把数据换成了英文的,可以插入了。
    我知道了,要在PHP文件里把字符转换一下。
    难道说在PHPMYADMIN里它是自动给转换的?