Functions ..why????

From: Date: Sun, 17 Dec 2000 12:36:45 +0000
Subject: Functions ..why????
Groups: php.general 
Request: Send a blank email to php-general+get-30729@lists.php.net to get a copy of this message
HI! I have this little doubt.. can anybody explain me why do we use this type of function: function check_item($table, $session, $product) { $query = "SELECT * FROM $table WHERE session='$session' AND product='$product' "; $result = mysql_query($query); if(!$result) { return 0; AS far as I have seen..the funcations are like say for example: function dhaval() { echo "I am DHaval Dedai"; } Please explain me why did we use thos things within the brackets...while defining the function. Thanx a lot! Dhaval Desai __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/

« previous php.general (#30729) next »