Hi all, im a newbie so go easy on me if i ask silly questions.
OK here goes:
AIM: im trying to create a dynamic heading, i have a table in mysql, and linking to it works fine
CODE: this is the section of code which is causing all the problems:
$result = mysql_query ("
select product_desc
from product
where product_no = '$product'
");
echo "$result";
QUESTION: ok i have a form and $product is the input from user, if i type in the select command in mysql and replace $product with '1' i get my output, but i want user to type in 1 and produce the same output on screen.
I plan to use this in a heading, like Welcome u searched for "product_desc" when users type in the product no.
Any ideas if this code is correct, if not how would i achive what i am after.
thanks
ceanth