Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help fixing error!
07-13-2012, 11:43 AM (This post was last modified: 07-13-2012 11:45 AM by trytofly.)
Post: #1
Need help fixing error!
Hi,

Please help me fix that error:

Parse error: syntax error, unexpected T_IF, expecting T_WHILE in /home/gin/public_html/sks/classes/import_export.php on line 864

Code:
public function character_data( $parser, $data )
    {
        if ( !$this->curr_element )
        {
            return;
        }
        $this->whitespace_strip( $data );
        $i = 0;
        while ( $i < count( $this->xml_tags ) )
        {
            if ( $data != "" )
            {
                do
                {
                    if ( !( $this->xml_tags[$i]['field'] == $this->curr_element || $this->xml_tags[$i]['alias'] == $this->curr_element ) )
                    {
                        break;
                    }
                    else
                    {
                        if ( isset( $this->row_array[$this->xml_tags[$i]['field']] ) )
                        {
                            $this->row_array[$this->xml_tags[$i]['field']] .= $data;
                        }
                        else
                        {
                            $this->row_array[$this->xml_tags[$i]['field']] = $data;
                        }
                        break;
                    }
                }
                if ( ( $this->xml_tags[$i]['field'] == $this->curr_element || $this->xml_tags[$i]['alias'] == $this->curr_element ) && !isset( $this->row_array[$this->xml_tags[$i]['field']] ) )
                {
                    $this->row_array[$this->xml_tags[$i]['field']] = "";
                }
                break;
            } while ( 0 );
            ++$i;
        }
    }

line 864: if ( ( $this->xml_tags[$i]['field'] == $this->curr_element || $this->xml_tags[$i]['alias'] == $this->curr_element ) && !isset( $this->row_array[$this->xml_tags[$i]['field']] ) )

Thanks for help!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Need help fixing error! - trytofly - 07-13-2012 11:43 AM
RE: Need help fixing error! - 2nick - 07-13-2012, 02:11 PM
RE: Need help fixing error! - trytofly - 07-15-2012, 10:21 AM
RE: Need help fixing error! - gerard - 07-13-2012, 05:29 PM
RE: Need help fixing error! - kingofseo - 07-16-2012, 01:48 PM
RE: Need help fixing error! - trytofly - 07-17-2012, 11:31 AM
RE: Need help fixing error! - kingofseo - 07-17-2012, 02:03 PM
RE: Need help fixing error! - trytofly - 07-19-2012, 10:06 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | Homepage | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication