Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help fixing error!
07-15-2012, 10:21 AM (This post was last modified: 07-15-2012 10:23 AM by trytofly.)
Post: #4
RE: Need help fixing error!
(07-13-2012 02:11 PM)2nick Wrote:  
(07-13-2012 11:43 AM)trytofly Wrote:  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

Thanks for help!

http://ru2.php.net/manual/en/control-str....while.php

maybe so
PHP Code:
...................................................................
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;
    }
}while ( 
); //THERE
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 you fixed this code.

Now i have that :

Warning: implode() [function.implode]: Invalid arguments passed in /home/gint/public_html/sks/classes/import_export.php on line 345

Warning: implode() [function.implode]: Invalid arguments passed in /home/gintaras/public_html/skelbimai/classes/import_export.php on line 355

line 345: $ext_fields = implode( $this->ad_ignore_tags, ",");
line 355: $ext_fields = implode( $this->user_ignore_tags, "," );

Code:
public function getexportcsvfields( $d = "" )
    {
        if ( $d )
        {
            $data = $d;
        }
        else
        {
            $data = $this->data;
        }
        if ( $data == "ad" )
        {
            $listings = new listings( );
            $fields = $listings->getTableCSVFields( );
            $ext_fields = implode( $this->ad_ignore_tags, ",");

            if ( $fields )
            {
                $fields .= ",";
            }
            $fields .= $ext_fields;
            return $fields;
        }
        $users = new users( );
        $fields = $users->getTableCSVFields( );
        $ext_fields = implode( $this->user_ignore_tags, "," );
        if ( $fields )
        {
            $fields .= ",";
        }
        $fields .= $ext_fields;
        return $fields;
    }

idk how to fix that implode error Sad someone can help me? Thanks!!
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