Hi,
The form below works perfectly when it is called from Chronoconnectivity, but it does not work when it is called by Chronoform.
Part of the code of the form :
The error message with Chronocontact is : Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' ... in line
The Php code works fine with "Jumi".
Could you help me to understand where is the mistake (for Chronocontact) in this line above
Thanks in advance
André
The form below works perfectly when it is called from Chronoconnectivity, but it does not work when it is called by Chronoform.
Part of the code of the form :
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 280px;"><span style="color: #ff0000;">Nom de la bourse</span></label>
<select class="cf_inputbox required" id="nomBourse" size="1" title="nomBourse" name="nomBourse">
<option value="">Sélectionner une bourse</option>
<?php
$sql = 'SELECT nom_bourse FROM jos_chronoforms_NomBourses WHERE dateFinBourse >= CURRENT_DATE ORDER BY dateFinBourse';
$resultat = mysql_query($sql);
while ($data = mysql_fetch_object($resultat))
echo "<option value='$data->nom_bourse'> $data->nom_bourse </option>";
mysql_free_result($resultat);
?>
</select>
<div class="cfclear"> </div>
</div>
</div>
The error message with Chronocontact is : Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' ... in line
echo "<option value='$data->nom_bourse'> $data->nom_bourse </option>";
The Php code works fine with "Jumi".
Could you help me to understand where is the mistake (for Chronocontact) in this line above
echo "<option value='$data->nom_bourse'> $data->nom_bourse </option>";
Thanks in advance
André