Steve Jackson wrote:

function get_shipping($shippingvar)
$conn = db_connect();
$query = mysql_query("SELECT MAX(receipt_id) from receipts");
$myrow = mysql_fetch_row($query);
$shippingvar = $myrow["shipping"];
return $shippingvar;

Check ... specifically, mysql_fetch_row specifically is not mysql_fetch_array and the latter is probably what you want. You may also want some error checking in that function if you don't already have any.

Michael T. Babcock
C.T.O., FibreSpeed Ltd.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to