Código PHP:
<form action="comprar_butaca_2.php" method="post" name="formulario" id="formulario" onSubmit="return checkrequired(this)">
<div align="center"> <table width="487" border="1" cellpadding="0" cellspacing="1">
<tr bgcolor="#318495">
<td width="127"><div align="center" class="Estilo2">No. de butaques que vol comprar </div></td>
<td width="115"><div align="center" class="Estilo2">Preus</div></td>
<td width="115"><div align="center" class="Estilo2">
Nom i llinatges:</div></td>
<td width="115"><div align="center"><span class="Estilo2">DNI:</span></div></td>
</tr>
<tr bgcolor="#B0B0B0">
<td><div align="center">
<input name="numero" type="text" id="numero" value="1" size="2" maxlength="2">
</div></td>
<td><div align="center">
<select name="desc_preu" id="desc_preu">
<?php do { ?>
<option selected <?php echo "value=\"".$row_preus['ID']."\"" ?>><? echo " ".$row_preus['tipus']." ".$row_preus['preu']."".€." " ?></option>
<?php } while ($row_preus = mysql_fetch_assoc($preus)); ?>
</select>
</div></td>
<td><input name="requiredNom" type="text" id="Nom" size="30"></td>
<td><input name="requiredDNI" type="text" id="DNI" size="15"></td>
</tr>
<tr bgcolor="#B0B0B0">
<td><div align="center">
<input name="numero_2" type="text" id="numero_2" value="0" size="2" maxlength="2">
</div></td>
<td><div align="center">
<select name="desc_preu2" id="desc_preu2">
<?php do { ?>
<option <?php echo "value=\"".$row_preus['ID']."\"" ?>><? echo " ".$row_preus['tipus']." ".$row_preus['preu']."".€." " ?></option>
<?php } while ($row_preus = mysql_fetch_assoc($preus)); ?>
</select>
</div></td>
<td> </td>
<td> </td>
</tr>
<tr bgcolor="#B0B0B0">
<td><div align="center">
<input name="numero_3" type="text" id="numero_3" value="0" size="2" maxlength="2">
</div></td>
<td><div align="center">
<select name="desc_preu3" id="desc_preu3">
<?php do { ?>
<option <?php echo "value=\"".$row_preus['ID']."\"" ?>><? echo " ".$row_preus['tipus']." ".$row_preus['preu']."".€." " ?></option>
<?php } while ($row_preus = mysql_fetch_assoc($preus)); ?>
</select>
</div></td>
<td> </td>
<td> </td>
</tr>
<tr bgcolor="#B0B0B0">
<td><div align="center">
<input name="numero_4" type="text" id="numero_4" value="0" size="2" maxlength="2">
</div></td>
<td><div align="center">
<select name="desc_preu4" id="desc_preu4">
<?php do { ?>
<option <?php echo "value=\"".$row_preus['ID']."\"" ?>><? echo " ".$row_preus['tipus']." ".$row_preus['preu']."".€." " ?></option>
<?php } while ($row_preus = mysql_fetch_assoc($preus)); ?>
</select>
</div></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="4"><div align="center">
<input type="submit" name="Submit" value="Enviar">
</div></td>
</tr>
</table>
</div>
<p align="center"> </p>
</form>
Parse error: parse error, unexpected '&' in /home/html/tpv/comprar_butaca.php on line 114
La linea 114 corresponde a esto:
Código PHP:
<option selected <?php echo "value=\"".$row_preus['ID']."\"" ?>><? echo " ".$row_preus['tipus']." ".$row_preus['preu']."".€." " ?></option>