Tony pressed the little lettered thingies in this order...
> Thanks for your quick respond and your help.
> This is great.
> I have one more favor to ask you. As you know I am a beginner of PHP &
> Mysql, do I put that language on all my product pages? It seems to be too
> much work. Is there way that I can save main language that you wrote in to
> one file as "stock.php3", and point a link from product html page with
> known item number for "itemx"? And, print the result back to product html
> page with "Out of Stock" or "In Stock". I will appreciate your help. Thanks
> again for your help. Tony
>
Take a look at function()
http://php.he.net/manual/en/functions.php
and require:
http://php.he.net/manual/en/function.require.php
Define the code in the file you are requiring:
function inStock($itemx) {
...do query here...
...echo result here...
}
And in your regular pages:
require("file_with_functions.php");
inStock($itemx);
That's about it.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
For a good time,
http://www.AppIdeas.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]