Jump to content

what is wrong with this code? 2


victormenezes

Recommended Posts

on my server is giving error:Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\postador\include\opcoes.php on line 68


 


my code is:


I've changed the tags nothing happened can someone fix for me?



<?
$grupos = @simplexml_load_file("./xml/grupos.xml");
$grupoids = @explode(',', $grupos->ids);

if (file_exists("./xml/usuarios/id_{$id}.xml")){
// Carregando configurações XML
$config = simplexml_load_file("./xml/usuarios/id_{$id}.xml");
}
$portais_array = array('3', '6');
?>

<form id="s_config" action="index.php?act=opcoes_ret" method="post">
<dl><dt>Configure seu Gerador</dt>
<dd id="dados-left">
<label for="outrasinfo">1 - Outras Informações:</label>
<?php
if ($config->outrasinfo == 1){?><input type="checkbox" name="outrasinfo" id="outrasinfo" value="<?=$config->outrasinfo;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="outrasinfo" id="outrasinfo" value="1" /><?}?>
<br />
<label for="youtube">2 - Link Youtube:</label>
<?php if ($config->youtube == 1){?> <input type="checkbox" name="youtube" id="youtube" value="<?=$config->youtube;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="youtube" id="youtube" value="1" /><?}?>
<br />
<label for="quatroscreens">3 - Quatro ScreenShots:</label>
<?php if ($config->quatroscreens == 1){?> <input type="checkbox" name="quatroscreens" id="quatroscreens" value="<?=$config->quatroscreens;?>" checked="checked" /><?
} else {?> <input class="checkbox" type="checkbox" name="quatroscreens" id="quatroscreens" value="1" /><?}?>
<br />
<label for="curiosidades">4 - Curiosidades:</label>
<?php if ($config->curiosidades == 1){?> <input type="checkbox" name="curiosidades" id="curiosidades" value="<?=$config->curiosidades;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="curiosidades" id="curiosidades" value="1" /><?}?>
<br />
<label for="premiacoes">5 - Premiações:</label>
<?php if ($config->premiacoes == 1){?> <input type="checkbox" name="premiacoes" id="premiacoes" value="<?=$config->premiacoes;?>" checked="checked" /><?
} else {?> <input type="checkbox" name="premiacoes" id="premiacoes" value="1" /><?}?>
<br />
</dd>
<dd id="dados-right">
<label for="imglanc">1 - Imagem de Lançamento:</label>
<input type="text" name="imglanc" id="imglanc" size="37" value="<?=$config->imglanc;?>" />
<br />
<?if (in_array($id, $grupoids)){?>
<label for="portais">2 - Portais:</label>
<select name="portais" id="portais">
<option value="">Selecione</option>
<?
foreach ($portais_array AS $portais){
if ($config->portais == $portais){
echo ("<option value=\"{$portais}\" selected=\"selected\">{$portais}</option>");
} else {
echo ("<option value=\"{$portais}\">{$portais}</option>");
}
}?>
</select>
<?}?>
</dd>
</dl>

<dl class="enviar-d"><dd><input type="submit" value="Salvar" /></dd></dl>

</form>








Link to comment
https://forums.phpfreaks.com/topic/283030-what-is-wrong-with-this-code-2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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