On Nov 13, 12:41*pm, "ZT.Ph34rl...@gmail.com" <ZT.Ph34rl...@gmail.com>
wrote:
Quote:
Hi there,
>
First of thank you for reading.
I have the following issue.
>
I'm filling a select list dynamically with mysql and want the names
that are retrieved from de database to be changed by a DEFINE that
stated in other php file..
The first part works the names al get in the list but the DEFINE isn't
happening which is logic cause you have only one echo which is the
name from the database.
But putting an echo around that one doesn't work, does any of you have
a idea how to solve my issue.
>
Code:
>
* *<select id="objectTypeSelect" tabindex="2">
* <?php
do {
?>
* <option value=" <?php echo $row_getObjectTypes['id']?>"><?php echo
$row_getObjectTypes["shortname"] ?></option>
* <?php} while ($row_getObjectTypes = mysql_fetch_assoc($getObjectTypes));
>
* $rows = mysql_num_rows($getObjectTypes);
* if($rows 0) {
* * * mysql_data_seek($getObjectTypes, 0);
* * * * * $row_getObjectTypes = mysql_fetch_assoc($getObjectTypes);
* }
?>
</select>
>
Thank you
>
Sincerely,
>
Jeroen
Solved it : )
If anyone is interested in the solution the echo needed to be like
this:
<?php echo constant ($row_getObjectTypes["shortname"]) ?>
Greets,
J