The function needs more or less parameters than supplied, in this case either 2 or 3, check
the manual

Steve Jackson wrote:

function get_order_id_receipt($orderid, $shipping)
{
//Get order ID from DB to pass to receipt.
$conn = db_connect();
$datequery = "select date from receipts where customerid = '10'";
$query = "select orderid from receipts where customerid = '10'";
$shippingquery = "select shipping from receipts where customerid =
'10'";
$date_result = mysql_query($datequery);
$date = mysql_result($date_result);
$orderid_result = mysql_query($query);
$orderid = mysql_result($orderid_result);
$shipping_result = mysql_query($shippingquery);
$shipping = mysql_result($shipping_result);
return $orderid;
return $shipping;
}

I get these errors echoed from mysql_error()
Warning: Wrong parameter count for mysql_result() in order_fns.php on
line 127

Warning: Wrong parameter count for mysql_result() in order_fns.php on
line 129

Warning: Wrong parameter count for mysql_result() in order_fns.php on
line 131

What does that mean?

Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED]
Mobile +358 50 343 5159







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to