Questions tagged [undefined-index]

An index is undefined if it is not part of the array being accessed. Use this tag for questions regarding behaviour of undefined indexes or when you see undefined indexes where you don't expect them.

This notice appears when you try to access an undefined index of an array. These commonly appear when working with $_POST, $_GET or $_SESSION variables in PHP.

Use this tag for questions about the behaviour of undefined indexes or when you see undefined indexes where you don't expect them.

276 questions
-1
votes
1 answer

PHP MySQL Cannot use "INSERT INTO"

I have created a webpage named Register.php which should insert data into my database. The problem with this is that the registration page works but then when I try to log in the information was not added into my database is there anything that I…
-1
votes
2 answers

Undefined index solved using isset, but cannot insert data in database

I have already used isset function to erase the undefined index, but problems occur on other function such as when I submit my data into my database in localhost server it cannot be seen or inserted. **
-1
votes
1 answer

Notice: Undefined index: dtime

I am new to php. I wrote an sql query in my php file to return the most popular hour from a table. $result = mysql_query("SELECT HOUR(dtime) as Hr,COUNT(*) AS Cnt FROM lewis_locations GROUP BY…
Cillín
  • 187
  • 1
  • 13
-1
votes
1 answer

Opencart search and special pages image bug

There is error in product search and special offers page. When I run product search and get results (or check special offers page). Put mouse on product image and get: "Notice: Undefined index: image_add in…
w3bgh0st
  • 3
  • 3
-1
votes
1 answer

Wordpress - Undefined index on unset field

Still trying to figure my way around Wordpress plugin development, how can I resolve this undefined error? This appears when I add a new post, it can't find the post so I'm trying to figure out how to resolve it with an isset. Notice: Undefined…
esteemed.squire
  • 524
  • 1
  • 7
  • 20
-1
votes
2 answers

Display data from two tables - PHP mySQL

I've two tables in database 1. post and 2. OS post: +----+------------+-------+-------+-----+--------+------+-----+-------+ | id | title | metaD | metaK | img | author | date | cat | text…
David
  • 23
  • 1
  • 7
-1
votes
1 answer

Undefined index notice in mysql query

I've read at least 50 questions & answers by this time about the issue i posted in my question with no luck. I'm suddenly encountering this issue on my server. 'Suddenly', because i hadn't been encountering any problem about this issue I use the…
Klanto Aguntuk
  • 719
  • 1
  • 17
  • 44
-1
votes
2 answers

Undefined index [php]

I got this codes for search and I'm having a problem. It functions well but after I clicked the search tab, it displays errors. But if I tried entering queries for search, it works fine. These are the errors: Notice: Undefined index: searching in…
pingboo23
  • 137
  • 1
  • 3
  • 15
-1
votes
2 answers

Undefined index in php (_SESSION['id'] and ['user'])

I'm new to php and I'm following a tutorial to make a login panel. It works fine on the demo website but when I download the code and run on my machine, 5 notices popped up. They all look like: "Notice: Undefined index: submit in…
-1
votes
1 answer

undefined index error. PHP version : 5.4.7

I want to do login page. When I enter details, issue is appeared. Login.php

Enter username:

Enter…

Afsar
  • 1
  • 1
  • 3
-1
votes
3 answers

Undefined indexes when saving form to database

I'm having a little trouble with a form i'm saving in a database. Basically, I have a form with checkboxes, every checkbox is connected to a column inside a mySQL database, when checked, and submitbutton is pressed, it saves the value from that…
CodeSigns
  • 53
  • 1
  • 2
  • 10
-1
votes
3 answers

Undefined Index of array

I'm trying to figure out why I'm getting an undefined index in the view for this line:
Jeff Davidson
  • 1,921
  • 7
  • 36
  • 60
-2
votes
1 answer

Notice: Undefined index $_POST method

I have a php simple project. The project is to create an email submission page. I use phpstorm software.
-2
votes
1 answer

Moving CodeIgniter To Another Server

I am attempting to move a clients website to a new server, this website was built long before I started at my company by someone who has left. It is built using CodeIgniter which is something I have no experience with. I transferred everything…
Edward144
  • 493
  • 6
  • 28
-2
votes
2 answers

PHP Session won't start

I'm having problem with starting a session in PHP. By looking around I wrote some code that should work but it doesnt. Can you please help me out because I don't know what's wrong here. This is my loging.php page
TheNoobUser
  • 406
  • 1
  • 5
  • 17