Login   Register  
PHP Classes
elePHPant
Icontem

To many bugs, a little help appreciated

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Cat Nested Model Category Class  >  All threads  >  To many bugs, a little help appreciated  >  (Un) Subscribe thread alerts  
Subject:To many bugs, a little help appreciated
Summary:Some help is needed
Messages:2
Author:Fatih Ibrahimi
Date:2010-01-19 20:10:57
Update:2010-02-08 11:52:04
 

  1. To many bugs, a little help appreciated   Reply   Report abuse  
Picture of Fatih Ibrahimi
Fatih Ibrahimi
2010-01-19 20:10:57
First, I would suggest the developer coding with ERROR_REPORTING(E_ALL);


The first run, and there are lot of errors

Notice: Undefined variable: parametres in examples\example_admin.php on line 50
ROOT /
Notice: Undefined index: category_id in examples\example_admin.php on line 55

Notice: Undefined index: parent in examples\example_admin.php on line 66

Notice: Undefined index: parent_id in examples\example_admin.php on line 67

Notice: Undefined index: new_name in examples\example_admin.php on line 68

Notice: Undefined index: dsc in examples\example_admin.php on line 69

Notice: Undefined index: del in examples\example_admin.php on line 84

Notice: Undefined index: edit_id in examples\example_admin.php on line 122




  2. Re: To many bugs, a little help appreciated   Reply   Report abuse  
Picture of calavera
calavera
2010-02-08 11:52:04 - In reply to message 1 from Fatih Ibrahimi
Hello.These are all errors because he used a variable before declaring it so you can do a

echo $message; and get an error because you should have done something like this:

$message = "This is my message"; // var declared
// and then
echo $message;

Also, you can check if the variable is declared like this:

if(isset($message)) { echo $message; } else { // do nothing }

I hope this clears things up a bit. It's because PHP's new versions does not support anymore this style of coding.