Sorry to keep on at you guys but this is really getting to me now!

I want to pull a shipping quantity (the very last record in the Db) into
a page and am still having problems. Tried looping through the records
and I can't seem to get it to return anything:

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;


Surely it can't be much more complicated than that? 
Help please. Smoked 10 fags already!

Steve Jackson
Web Developer
Viola Systems Ltd.
Mobile +358 50 343 5159

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to