RE: Re: [PHP] Addin a column of numbers not using MySQL

From: Date: Mon, 04 Aug 2003 18:19:29 +0000
Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL
Groups: php.general 
Request: Send a blank email to php-general+get-158175@lists.php.net to get a copy of this message
[snip] $sql_2 = "SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \"$id\" "; [/snip] Ben I would also check the query with echo"$sql_2 \n"; You may be surprised that what you get back is not what you intended.

« previous php.general (#158175) next »