RE: [PHP-DB] string compare function

From: Date: Thu, 17 Jan 2002 15:09:39 +0000
Subject: RE: [PHP-DB] string compare function
Groups: php.db 
Request: Send a blank email to php-db+get-15934@lists.php.net to get a copy of this message
post the entire line of code, (and the surrounding couple of lines?? and we'll get more of an idea. -----Original Message----- From: tomhilton [mailto:tom-hilton@home.com] Sent: 17 January 2002 14:56 To: php-db@lists.php.net Subject: [PHP-DB] string compare function Hi, I'm having a problem with the stcmp() function. I have it comparing two string variables, $pword and $conf_pword, in a script. I know they both have values, but the result always compares to 1 when $pword is the first variable in the function, and -1 when $pword is the 2nd variable in the function, no matter what string values are in the variables. It seems like the function is comparing the literal name "$pword" and "$conf_pword", not their values. I am working on a Win98 machine, does anyone have any suggestions as to what I'm doing wrong? Any help would be greatly appreciated -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.314 / Virus Database: 175 - Release Date: 11/01/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.314 / Virus Database: 175 - Release Date: 11/01/02

« previous php.db (#15934) next »