help me for fix

Discussion in 'PHP' started by talker1, May 21, 2010.

  1. #1
    2 files is attached. i have error when run. thanks
     

    Attached Files:

    • fix.zip
      File size:
      10.4 KB
      Views:
      45
    talker1, May 21, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    If you are lookinf for help, you really want to describe the problem, the error and some sample code.....

    anyone downloading a zip file from a forum is asking for trouble.....
     
    lukeg32, May 21, 2010 IP
  3. talker1

    talker1 Active Member

    Messages:
    160
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    errors:

    Parse error: syntax error, unexpected T_DO, expecting ';' in D:\wamp\www\categories.php on line 760
    Parse error: syntax error, unexpected T_DO, expecting ';' in D:\wamp\www\depending_fields.php on line 692
     
    talker1, May 22, 2010 IP
  4. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #4
    For depending_fields.php

    Have a look the below for modified lines

    
    if ( $old_data['no'] < $depending_no )
                {
                    $i = $old_data['no'] + 1;
                    for ($i <= $depending_no; ++$i; ) ; 
    				do
     {
     
                        {
                            $caption = $this->make_caption( $this->clean["dep_name".$i][$crt_lang], $type );
                            $db->query( "update ".TABLE_DEPENDING_FIELDS.( " set `caption".$i."` = '{$caption}', `table{$i}` = '{$caption}' where `id` = {$id}" ) );
                            $db->query( "create table ".$config_table_prefix.$caption." (`id` int(5) NOT NULL auto_increment, `dep` int(2), `name` varchar(64), `lang_id` varchar(20) default 'eng', KEY `id` (`id`) )" );
                            $db->query( "alter table ".$tab." add `".$caption."` varchar(100)" );
                            break;
                        }
                    } while ( 1 );
                }
    
    PHP:
    For categories.php
    Have a look here

    
                        for ( $j < $no; ++$j; ) ; 
    					{
    					
    					do
     {
    
                            {
                                if ( $result[$j]['parent_id'] == $element['id'] )
                                {
                                    $result[$j]['moved'] = 0;
                                }
                            }
    
    PHP:
     
    roopajyothi, May 22, 2010 IP
  5. talker1

    talker1 Active Member

    Messages:
    160
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    thanks but categories.php isn't fixed :(
     

    Attached Files:

    talker1, May 22, 2010 IP
  6. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Noob! Have you added what i said??
     
    roopajyothi, May 25, 2010 IP
  7. talker1

    talker1 Active Member

    Messages:
    160
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Yes please check new categories.zip. thanks
     
    talker1, May 28, 2010 IP