Re: [PHP-DB] upperCase
Your personal dancing monkey says: strtoupper()http://www.php.net/manual/en/function.strtoupper.php RTFM. Doug At 06:01 PM 3/11/01 +0800, Hoo Kok Mun wrote: >Hi, > >I am using mysql-3.22.32 with php4. > >I have a little problem with the uppercase. >I wanted to display a user input field in CAPS. > >This is what I did and it did not work. >$userfield = upper('$userfield'); >echo "User Field - $userfield"; > >Errors (tried both ucase and upper) >Call to undefined function: upper() >Call to undefined function: ucase() > >Really appreciate any help that I can get. > >*** >"Don't be afraid to ask dumb questions, they are a lot easier to > handle than dumb mistakes." >Email : [EMAIL PROTECTED] >Home Page : http://www.familyhoo.net >*** -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] upperCase
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Hoo Kok Mun) wrote: > This is what I did and it did not work. > $userfield = upper('$userfield'); > echo "User Field - $userfield"; > > Errors (tried both ucase and upper) > Call to undefined function: upper() > Call to undefined function: ucase() Yep, because you're using the wrong name(s) for the function known as "strtoupper" (confusing PHP functions with those of some other language, perhaps?). BTW, a quick search of the manual or skim through the list of string functions would have revealed the problem--and solution--immediately. -- CC -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DB] upperCase
Hi, I am using mysql-3.22.32 with php4. I have a little problem with the uppercase. I wanted to display a user input field in CAPS. This is what I did and it did not work. $userfield = upper('$userfield'); echo "User Field - $userfield"; Errors (tried both ucase and upper) Call to undefined function: upper() Call to undefined function: ucase() Really appreciate any help that I can get. *** "Don't be afraid to ask dumb questions, they are a lot easier to handle than dumb mistakes." Email : [EMAIL PROTECTED] Home Page : http://www.familyhoo.net *** -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]