Hello,
Have have been playing around with Chrono Connectivity for a couple of days now. I found the tutorial 1 very helpful however I can't seem to get the option box to work it just displays part of the option value code. I have used the categories table as my option value list to test. Can anyone see what I am doing wrong?
Also if I remove the <?php ?> code from the top I get this error on the frontend edit page.
Parse error: syntax error, unexpected $end in mysitedirectory/components/com_chronoconnectivity/chronoconnectivity.html.php(283) : eval()'d code on line 27
Thank you ;c)
Have have been playing around with Chrono Connectivity for a couple of days now. I found the tutorial 1 very helpful however I can't seem to get the option box to work it just displays part of the option value code. I have used the categories table as my option value list to test. Can anyone see what I am doing wrong?
<?php
?>
<table>
<tr>
<td>Product name:</td><td><input type="text" name="product_name"></td>
</tr>
<tr>
<td>Date created:</td><td><input type="text" name="date_created"></td>
</tr>
<tr>
<td>Supplier:</td>
<td>
<select name="cat_id">
<?php
$database->setQuery( "SELECT * FROM #__categories" );
$categories = $database->loadObjectList();
foreach($categories as $category){
?>
<option value="<?php echo $category->id; ?>"><?php echo $category->title; ?></option>
<?php } ?>
</select>
</td>
</tr>
</table>
<input type="hidden" name="id" value="">
Also if I remove the <?php ?> code from the top I get this error on the frontend edit page.
Parse error: syntax error, unexpected $end in mysitedirectory/components/com_chronoconnectivity/chronoconnectivity.html.php(283) : eval()'d code on line 27
Thank you ;c)