Hi guys,
Again I am NOT a programmer 🙁
I'm using a script I found called BaaSelect to dynamically change a drop boxs on my website.
I need the second drop box selection to generate text in a text area box from a column called 'Desc' from the table 'meals'
Here is the php script I'm using...
(i'll post in a rely, its too long)
Here is the short version of the html I'm doing...
<html>
<head>
<title></title>
<?php
//Select Data//
mysql_select_db(meal_plan, $con);
include 'baaSelect.php';
$sel = new baaSelect();
$sel->addSelect('mealtype', 'mealtypes', 'typeID', 'typeName','',1,'--Select--');
$sel->addSelect('meal', 'meals', 'MealID', 'mealName','typeID',1,'----------Select----------');
$sel->makeScript()
///
$directions = mysql_query("SELECT * FROM meals WHERE mealName=????????"); <--------------WHat!?! do I PUt HeRE??????/
$row = mysql_fetch_array($directions);
$desc = $row['desc'];
?>
.......
<form method=get>
Meal Type:
<br>
<?php $sel->makeSelect('mealtype'); ?>
Recipe:
<br>
<?php $sel->makeSelect('meal'); ?>
</form>
Directions:
<br>
<form>
<textarea name="comments" cols="60" rows="10"><?php !!!!!!!!!!!!WhAt!?! dO I PUt HeRE!!!!!!!
?>
</textarea>
</form>
</body>
</html>
Hope my CRaZy CaPS DoNT AnNOy!!!
P.S. I did post in one other forum this same question...hope that not against the rules
Thanks!!!