+ Responder ao Tópico



  1. #1
    Visitante

    Padrão INCLUDES

    Fiz o seguinte comando:

    switch($id)
    $corpo<IMG SRC="images/forum/icons/icon_frown.gif">$id){
    case "1":
    echo include &acute;include/id1.inc&acute;;
    break;

    case "2":
    echo include &acute;include/id2.inc&acute;;
    break;
    default;
    }

    ...no site q estou criando mas da pau =>

    Parse error: parse error, expecting `&acute;:&acute;&acute; or `&acute;{&acute;&acute; in /var/www/html/include/menu.inc on line 27

    ja tentei de tudo e nao consegui

  2. #2

    Padrão INCLUDES

    Segue aqui um exemplo

    switch(cont) {
    case 0:
    strcpy(linha1,buffer);
    break;
    case 1:
    strcpy(linha2,buffer);
    break;
    case 2:
    strcpy(linha3,buffer);
    break;
    case 3:
    strcpy(linha4,buffer);
    break;
    case 4:
    strcpy(linha5,buffer);
    break;
    case 5:
    strcpy(linha6,buffer);
    break;
    case 6:
    strcpy(linha7,buffer);
    break;
    }

    Outra coisa... reposta sua duvida, soh que sem os Smilies.. assim nao fica desfigurado...
    Se vc tivesse cadastrado, vc poderia editar a mensagem...