youwei
youwei
3656 10 0

出现错误

( ! ) Notice: Undefined index: cur_uid in E:\usr\www\web\hao.1.com\common.php on line 38
Call Stack

Time Memory Function Location

1 0.0005 376440 {main}( ) ..\index.php:0
2 0.0016 476320 include( 'E:\usr\www\web\hao.1555.com\common.php' ) ..\index.php:5

( ! ) Notice: Undefined index: cur_uname in E:\usr\www\web\hao.1.com\common.php on line 39
Call Stack

Time Memory Function Location

1 0.0005 376440 {main}( ) ..\index.php:0
2 0.0016 476320 include( 'E:\usr\www\web\hao.1555.com\common.php' ) ..\index.php:5

( ! ) Notice: Undefined index: cur_ucode in E:\usr\www\web\hao.1.com\common.php on line 40
Call Stack

Time Memory Function Location

1 0.0005 376440 {main}( ) ..\index.php:0
2 0.0016 476320 include( 'E:\usr\www\web\hao.1.com\common.php' ) ..\index.php:5

0

See Also

Nearby


Discussion (10)

admin
admin 2012-12-03 02:41

环境问题?
引用数组不存在的key报错。

0
youwei
youwei 2012-12-03 03:48

@admin 怎么解决呢 我啥都没有动 是不是需要开启啥

0
admin
admin 2012-12-03 03:51

@youwei 你新建一个php文件,粘贴下面的内容看看是不是正常?

<?php
$cur_uid = $_COOKIE['cur_uid'];
echo $cur_uid;
?>

0
youwei
youwei 2012-12-03 05:04

( ! ) Notice: Undefined index: cur_uid in E:\usr\www\web\hao.1555.com\u.php on line 2
Call Stack

Time Memory Function Location

1 0.0004 364984 {main}( ) ..\u.php:0

不行啊 楼主

0
admin
admin 2012-12-03 05:12

@youwei 不正常就对了,

这篇文章可能对你有帮助 http://shuai.be/archives/php-undefined-index/

0
youwei
youwei 2012-12-03 05:51

@admin 解决了 但貌似只能添加英文或者数字类型的 否则会出错??

0
ego008
ego008 2012-12-03 05:54

@youwei “只能添加英文或者数字类型的”,指的是什么操作?

0
youwei
youwei 2012-12-03 05:59

解决 数据库编码问题 默认 latin1 也就是你只能写数字或者英文 改为 utf8

0
ego008
ego008 2012-12-03 06:00

中文的推荐utf8

0
ego008
ego008 2013-02-24 03:41

0
Login Topics