[PHP-DB] Re: Problem in the returnvalue of a function

2003-01-22 Thread Bayu Susiloadhy
that means the result is not right, it happen when your query is failed,check your query, mysql_error() can help Ruprecht Helms writes: Hi Bayu Susiloadhy, thanks for your answer. function select_price($product_id,$quantity) { --cut-- return True; } --cut-- in the meentime

[PHP-DB] Re: Problem in the returnvalue of a function

2003-01-21 Thread Ruprecht Helms
Hi Bayu Susiloadhy, thanks for your answer. >> function select_price($product_id,$quantity) { > --cut-- >> return True; >>} > --cut-- in the meentime I change the code that not a boolevalue was returned by the function. $q is my querystring and $db is the selected database. I ins

[PHP-DB] Re: Problem in the returnvalue of a function

2003-01-20 Thread Bayu Susiloadhy
Ruprecht Helms writes: function select_price($product_id,$quantity) { --cut-- return True; } --cut-- $price=$ps_product_price->select_price($cart[$i]["product_id"],$cart[$i]["quanti ty"]); //printf("%.2f", $price["product_price"]); printf("%.2f",$price); you set the s