Forum Moderators: coopster
is this possible? if so, how? please advise. TIA,
$type2= mysql_field_name(4, 0);
the error i get is: Warning: mysql_field_name(): supplied argument is not a valid MySQL result resource in /nfs/2/makimoto/mysite.com/htdocs/app/showitemCAP.php on line 97
i also do not understand field offset, so i left it at zero. but i really don't know what i am doing here. i can supply surrounding code if required. any thoughts much appreciated!
thx,
makimoto
but now that you mention it, perhaps extra string info can be added to the field data when the while statement originally pulls the data. i tried to do this, but i can't figure out how to append the string i want. for example, here is the first iteration of the while statement:
<select name=\"type\">";
while ($types = mysql_fetch_array($get_types_res)) {
$item_I_CT = $types['I_CT'];
and the first iteration of the corresponding option tag:
$display_block .= "<option value=\"$item_I_CT\">Cereb Tack \$$item_I_CT</option>
when i submit this form, it only submits the value from the 'I_CT' field in the DB, which is the price of the Cereb Tack (btw). so how would i append "Cereb Tack" to the value from the DB?
thx again.