This is a discussion on "Converting to uppercase" within the Databases section. This forum, and the thread "Converting to uppercase are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Converting to uppercase
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Converting to uppercase
Hi,
I'm trying to get the article_id field to be returned in uppercase...
Thanks for your help! Jim. |
|
|
|
#2
|
|||
|
|||
|
Re: Converting to uppercase
A little clarification required.
You start by saying you want the 'article_id' in uppercase but your code shows you using the 'UPPER' command on the 'article_title' field. Also you have the 'article_title' inside quotes whereas what you want is just the field name, e.g., select article_id, upper(article_title)... Last edited by ukgeoff; May 1st, 2006 at 14:46. |
|
#3
|
|||
|
|||
|
Re: Converting to uppercase
Hi ukgeoff,
Ah sorry, article_title is the field I want returned in uppercase. ![]() If I write it with or without quotes, I get no error and no text is displayed
But I would still like to know what I'm doing wrong... Cheers, Jim. |
|
#4
|
|||
|
|||
|
Re: Converting to uppercase
Hi Jim,
If you were showing error messages you should be seeing a syntax error. SQL doesn't like the space between upper and the opening bracket, i.e., you need upper(art... and not upper (art... Kind Regards Geoff |
|
#5
|
|||
|
|||
|
Re: Converting to uppercase
Thanks for your help, but it still dosen't work...
I turned on all error reporting in php.ini I did a var_dump on the variable and it dumped out the string, but as soon as I put UPPER anywhere it says the variable is equal to NULL... Tried a million different ways, and did it just like the mysql manual said... Too hard basket... Thanks anyway. I'll just use the CSS. |
|
#6
|
|||
|
|||
|
Re: Converting to uppercase
Ok. So assuming you got rid of the space, the syntax is now correct so its more of a puzzle. I use a tool called SQLyog for setting up and managing my MySQL databases. It's absolutely superb. I use a paid for version but they do a free version as well. http://www.webyog.com/ Give it a try. it might give you more of an insite into what is going on and what your database actually looks like. You can at least satisfy yourself that there is nothing wrong with the syntax which may help point you in the right direction. |
|
#7
|
|||
|
|||
|
Re: Converting to uppercase
Why dont you just use:
Would make HELLO MY FRIEND |
![]() |
| Tags |
| converting, uppercase |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting this to css..... | jahphill | Web Page Design | 3 | Jun 9th, 2008 11:19 |
| Converting UTF-8 characters to ISO | darkling235 | JavaScript Forum | 2 | Mar 23rd, 2008 22:40 |
| converting an swf into an fla | danny322 | Flash & Multimedia Forum | 5 | Feb 2nd, 2008 08:32 |
| converting to css | sliz | Web Page Design | 5 | Aug 28th, 2007 14:30 |
| Converting Time | Michaeln | Databases | 1 | Jun 3rd, 2007 13:34 |