RE: [PHP-DB] Undefined Variable and argument not valid . . .

2001-02-14 Thread John Halladay
Is it possible to add, subtract, etc on values as I am demonstrating below. I'm getting an error with this. I want to be able to add the values of CMAPER and CMUPER when displayed. printf("%s%s\n", $myrow["CMPLNDESC"], $myrow["CMAPER"+"CMUPER"]); Thanks, John -- PHP Database Mailing List (htt

Re: [PHP-DB] Undefined Variable and argument not valid . . .

2001-02-14 Thread Jorge Santos
rge [EMAIL PROTECTED] - Original Message - From: John Halladay <[EMAIL PROTECTED]> To: 'Jorge Santos' <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 1:11 PM Subject: RE: [PHP-DB] Undefined Variable and argument not valid . . . > Great! That fixed the first er

Re: [PHP-DB] Undefined Variable and argument not valid . . .

2001-02-14 Thread Jorge Santos
Hi John, You're trying to use a variable that is not set. Try using the isset function... Like this: if (isset($COCOD)) $result = mysql_query("SELECT * FROM tblAA_MIKER_COMPDAT WHERE COCOD=$COCOD",$db); Hope this helps... Later, Jorge [EMAIL PROTECTED] - Original Message - From