Using Information from a SQL database I'm generating a string with values from two 'cells' [Plant Name], [Plant Description] so it now reads [Plant Name - Description].

I'm now looking to edit the [Plant Description] through the new string [Plant Name - Description].

Because I can identify [Plant Name] I think this is possible but I have no clue on how to do this? any ideas?

PHP Code:
<textarea name="ItemDescription[<?php echo $rowR?>]" cols="50" rows="2" id="textarea"><?php 
              $savedref
=$_GET['save'];
              if(
$savedref){  
                      
$query mysql_query("SELECT * FROM database WHERE ref='$savedref'");
                      
$editedtext mysql_fetch_assoc($query);
                      
$newDescription explode(".---.",$editedtext['worktype']);
                                  echo 
$newDescription[($rowR-1)];}else{
              
              
$description mysql_query("SELECT * FROM treetable WHERE (Tree='$nm[$rowR]' OR Shrub='$nm[$rowR]') AND Type_Code='$Des[$rowR]'") or die(mysql_error());
              
$desc mysql_fetch_assoc($description);
              
              if(isset(
$ItemDescription)){echo $ItemDescription[$rowR];}else{echo $nm[$rowR]." - ".$desc[Type];}}
              
               
?></textarea>

<!--(code just shown as an example not expected to be adapted thanks)-->