I have been trying for most of the day to pull a variable from a db.
Finally managed that. Now I need to pass the result of a function to
another function.
How do you do this?
I assume the following if called in another page can be used?

function get_shipping($shipping)
$conn = db_connect();
$query = "SELECT * FROM receipts ORDER BY receipt_id DESC LIMIT 1";
$result = mysql_query($query);
//$shippingvar = $myrow["shipping"];
    $shipping = mysql_result($result, 0, "shipping");
return $shipping;

If I return $shipping how can I display that?

I have called it in another page by doing

And then 

Echo "test $shipping";

But that doesn't work.

Ideas where I'm going wrong this time?

Steve Jackson
Web Developer
Viola Systems Ltd.
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