: MySQL General Mailing list; PHP General
Subject: Re: [PHP] Get shipping problem continued!
Hi,
Friday, November 1, 2002, 11:11:52 PM, you wrote:
SJ> Sorry to keep on at you guys but this is really getting to me now!
SJ> I want to pull a shipping quantity (the very last record in the Db) into
Hi,
Friday, November 1, 2002, 11:11:52 PM, you wrote:
SJ> Sorry to keep on at you guys but this is really getting to me now!
SJ> I want to pull a shipping quantity (the very last record in the Db) into
SJ> a page and am still having problems. Tried looping through the records
SJ> and I can't seem
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 http://php.net/mysql_fetch_row ... specifically, mysql
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)
{
$