+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
Web Development Thread, Php function in Coding and Web Development; How about adding error_reporting(E_ALL); at the beginning of index.php, to see if any errors are being generated. I use it ...
  1. #16

    Join Date
    Jan 2007
    Location
    Lowestoft, Suffolk
    Posts
    84
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    17
    How about adding error_reporting(E_ALL); at the beginning of index.php, to see if any errors are being generated. I use it all the time I'm developing to make sure I don't have any errors, uninitialised variables are the ones that slip through. They only generate warnings, but I prefer to kill them all with isset() checks.

    Taking a quick at the output_fns.php... is the insert function being called at all?

    you initialise the array...

    $Error = array("email" => "","pwd" =>"","pwd1"=>"");

    then test if it's empty...

    if(empty($Error))
    {
    insert($email,$pwd,$nama,$tgl_lahir,$jekel,$tmpt,$ alamat,$kota,$propinsi);

    Try changing the declaration of the variable to $Error=array();
    then the check for errors may work, but if (count($Error)==0) might be a more reliable check.

  2. #17

    Join Date
    Feb 2009
    Location
    Indonesia
    Posts
    18
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    I've tried it

    Hi Paul,i've tried it.It displasy error says that undefined index..If i put the queries in the display_login_form(),it works,The database was updated.All i'm trying to do is to make another page that contains the queries function..Thanks a lot...

  3. #18

    Join Date
    Jan 2007
    Location
    Lowestoft, Suffolk
    Posts
    84
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    17
    Does undefined index appear when $Error['email']="Email error" ?

    Because I'd expect that. You can just add to the errors array without specifying an index...

    $error[]="Email error";

    ...

    $error[]="Password error";

    Personally, I just use a string ($errors) and add to it with each error message wrapped in a <li>...</li> tag then display as follows..

    print "<ul>$errors</ul>";

  4. #19

    Join Date
    Feb 2009
    Location
    Indonesia
    Posts
    18
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    How do you usually deal with member registration

    Yes,it does.Paul,what do you do usually when dealing with member registration?Will you put the insert function within the registration page or you put the function in a another page?Thanks a lot..



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [MS Office - 2007] Capped 8 Function
    By tw15ns in forum Office Software
    Replies: 1
    Last Post: 25th November 2008, 10:47 PM
  2. VBA: Control ID -> function?
    By PiqueABoo in forum Coding
    Replies: 0
    Last Post: 25th November 2008, 04:45 PM
  3. [function.fopen] error
    By Gatt in forum EduGeek Joomla 1.0 Package
    Replies: 9
    Last Post: 29th April 2008, 01:23 PM
  4. Easy spreadsheet function
    By park_bench in forum MIS Systems
    Replies: 1
    Last Post: 19th March 2008, 11:20 AM
  5. FN + F5 function key does not work
    By alexknight in forum Hardware
    Replies: 8
    Last Post: 7th February 2007, 03:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •