Jump to content

undefined index ?


chingching

Recommended Posts

Hello,

I have some code with a problem.

The code is:

 

1. <?php

2. $initStartLimit = 0;

3. $limitPerPage = 10;

4. $startLimit = $_REQUEST['startLimit'];

5. $numberOfRows = $_REQUEST['rows'];

6. $sortBy = $_REQUEST['sortBy'];

7. $sortOrder = $_REQUEST['sortOrder'];

 

The errors starts with row 4:

 

 

Notice: Undefined index: startLimit in *** on line **

Notice: Undefined index: rows in ***  on line **

Notice: Undefined index: sortBy ***

Notice: Undefined index: sortOrder in ***

 

The code was created by "phpCodeGenie" and works fine on my webserver, which has

php version 4.4.4 and

mySql version 4.1.21

 

I just installed easyPHP on my home computer which has php version 4.3.10

mySql version 4.1.9

 

The errors only show up on easyPHP.  My guess is that phpCodeGenie defined these indexes.  How can I define them in EasyPHP ? 

 

Thank you All.

 

Link to comment
https://forums.phpfreaks.com/topic/43079-undefined-index/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.