Select in match to selection playground

Moderator: And_One

oestetechnology
Newbie
Posts: 1
Joined: Thu Jan 03, 2013 6:01 pm

Select in match to selection playground

Postby oestetechnology » Thu Jan 10, 2013 2:29 am

ENGLISH
Hello to all, my name is Juan Carlos im form Argentina and this learning php.
I am treating of he adds an option of selection or field modification in the section of parties inside joomleague Modifying the file administrator/components/com_joomleague/views/matches/tmpl/default_matches.php
I did the modifications between the lines 187 and 232 But I do not achieve that one guards the modification on having tried to change the playground.
the modification is:
<?php
$id=$row->id;
$part_1 = mysql_query("SELECT * FROM jos_joomleague_match WHERE id=$id");
if (!$part_1) {
echo ("Error al seleccionar los elementos de la base de datos, Inténtelo más tarde");
}
while ($row_1 = mysql_fetch_array($part_1)){
$camp_ids=$row_1["playground_id"];

$part_2 = mysql_query("SELECT * FROM jos_joomleague_playground WHERE id=$camp_ids");
if (!$part_2) {
echo ("Error al seleccionar los elementos de la base de datos, Inténtelo más tarde");
}
while ($row_2 = mysql_fetch_array($part_2)){
$campo_actual=$row_2["name"];
$id_camp_act=$row_2["id"];
} }
?>
<!-- aqui deberia ir <form method="post" action="" > -->

<label>
<select name="playground_id" id="playground_id">
<option value="<?php echo $id_camp_act;?>" selected="selected"><?php echo $campo_actual;?></option>
<?php
$part_111 = mysql_query("SELECT * FROM jos_joomleague_playground");
if (!$part_111) {
echo ("Error al seleccionar los elementos de la base de datos, Inténtelo más tarde");
}
while ($row_111 = mysql_fetch_array($part_111)){
?>
<option value="<?php echo $row_111["id"];?>"><?php echo $row_111["name"];?></option>
<?php }
?>
</select>
<input name="webss" type="hidden" id="webss" value="<?php echo $web;?>" />
<input name="id" type="hidden" id="id" value="<?php echo $row->id;?>" />
</label>
<label>
<input type="submit" name="button" id="button" value="Enviar" />
</label><!-- aqui deberia ir </form> -->

Please they can help me to that you work correctly..?

Sorry for my english.

Return to “Extensions / Customizations”

Who is online

Users browsing this forum: No registered users and 2 guests