Jump to content

Pls if someone know how did it happened....give me solution....


brave

Recommended Posts

Hi All,

  I did the mini web project and it has some pages... I wrote it layer by layer. I mean DB Layer / Application Layer. All process were ok. But I faced some error. It was the following:

1. Page1.php
  {Some Client Coding and it call (Data_process.php) page with parameter (Insert Mode or Update Mode or Delete Mode )when user Save Button}


2. Data_process.php
  {  function go($data)
      {  switch($data['Mode'])
            Insert : call('InsertData',array($data))

            Update : call(UpdateData',array($data))
        }
  }
3. Service.php //(Some functions to directly insert / update /delete to Database and return result to )
    {
        function InsertData()
      {
            switch ($var)
          {
            1 : $result = function1() ;
            2:  $result = function2();
            3:  $result = function3();
            4:  $result = function4();
            5:  $result = function5();
          }
              return $result;
      }
 
        function1(){coding here}
        function2()
        { for loop {call function3; }do something; return;}
        function3()
        { do something; for loop; return;}
        function4){coding here}
        function5){coding here}
 
        function UpdatData()
      {some coding here}
    }

I found while the looping process is doing in function3 , it return the data_process.php and throw error messag. But processing is go ahead...... 
I did'nt know how did it happened.  Pls....suggest or give solution me  if you 've any idaea...
Thank in advance.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.