All Questions

836
votes
23answers
1233850 views

PHP: "Notice: Undefined variable", "Notice: Undefined index", and "Notice: Undefined offset"

I am running a PHP script, and keep getting errors like: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php on line 10 Notice: Undefined index: my_index C:\wamp\www\...
30
votes
10answers
114744 views

Undefined index with $_POST

I am trying to relearn some PHP basics for making a simple login script, however I get an error I have not received before(I made the same script a little over a year ago and never had this error. I s...
0
votes
6answers
4251 views

Why am I getting "Undefined index" from my PHP?

When I run this code: <?php if (preg_match('/^[a-z0-9]+$/', $_GET['p'])) { $page = realpath("includes/$_GET[p].php"); if ($page) { include $page; } } ?> I get this error: Notice...
11
votes
1answers
504 views

Why does accessing array index on boolean value does not raise any kind of error?

When I try to access an array by key which is not exists in this array, php will raise "undefined index" notice error. When I try to do the same on strings, "Illegal string offset " warning is raised....
0
votes
2answers
2306 views

Getting 'undefined index' error while trying to use $_FILE in PHP

I can easily upload the files into the database But when i want to edit the files,I am getting Undefined error. Here is the code: product_update.php This is where i am able to modify all the existing...
0
votes
3answers
6125 views

Undefined index in PHP post

I take a form and do variable checking in jquery then pass it to a php file in ajax but I am getting this notice Notice: Undefined index: your_name in C:\xampp\htdocs\process.php on line 3 something ...
19
votes
2answers
4263 views

Undefined index error upon $em->clear() in Symfony2

I have written a Symfony command to import some data from an API. It works but the problem is my PHP memory usage increases when I insert a big JSON in my database. And my unitOfWork increases by '2' ...
5
votes
1answers
12111 views

PHPMyAdmin Undefined Index: Rows

I'm receiving the error below when using phpMyAdmin. It's occurring every time I create any table. Notice in ./libraries/structure.lib.php#1881 Undefined index: Rows Backtrace ./libraries/struc...
3
votes
3answers
14816 views

How can I fix this undefined index error? Jquery Ajax to PHP

I'm using Jquery, Ajax and PHP to try and send a variable to be written in a mysql database. The Ajax request is being made but the variable is not being picked up by the php. I don't know why this i...
2
votes
3answers
63737 views

$_POST not working. "Notice: Undefined index: username..."

Possible Duplicate: PHP: “Notice: Undefined variable” and “Notice: Undefined index” So, I am currently learning PHP and was reading on a book about the md5 function for passwords, ...

Previous Next