![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi-- I have the following Line in my script, which brings up data from the category column of my mysql table: echo "<b>",$category,"</b>"; But all the data there is lower case, and I wanted to make to make it upper case when displayed. Is there a way to do this? All My Best, Jeffrey | |||
| Advertisements |
| | #2 | ||
| On Sun, 17 Aug 2003 11:21:16 -0700, Jeffrey Ellis <support@groundlevel.net> wrote: >I have the following Line in my script, which brings up data from the >category column of my mysql table: > > echo "<b>",$category,"</b>"; > >But all the data there is lower case, and I wanted to make to make it upper >case when displayed. Is there a way to do this? Go to http://www.php.net/ Type 'upper case' into the Search box. One of the hits is http://uk.php.net/manual/en/function.strtoupper.php -- Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space) | |||
| | #3 | ||
| in article miivjv4ar07qmtfipbggeb4q9dsfcf2vvj@4ax.com, Andy Hassall at andy@andyh.co.uk wrote on 8/17/03 11:33 AM: > On Sun, 17 Aug 2003 11:21:16 -0700, Jeffrey Ellis <support@groundlevel.net> > wrote: > >> I have the following Line in my script, which brings up data from the >> category column of my mysql table: >> >> echo "<b>",$category,"</b>"; >> >> But all the data there is lower case, and I wanted to make to make it upper >> case when displayed. Is there a way to do this? > > Go to http://www.php.net/ > Type 'upper case' into the Search box. > One of the hits is http://uk.php.net/manual/en/function.strtoupper.php > > -- > Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) > Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space) Hi, Andy-- Sorry, a bit of an addendum, and I made a mistake. I actually looked at the category field in the database, and the data already is in the case I need...but the echo is displaying it in lower case...for example: "Downloading" is echoed by that line as "downloading". This isn't supposed to happen is it? Also, I really meant Proper or Title case, not Upper...sorry. I did a search for those terms at php.net and came up with no results for a function which did that. Is there one? All My Best, Jeffrey | |||
| | #4 | ||
| On Sun, 17 Aug 2003 11:45:28 -0700, Jeffrey Ellis <support@groundlevel.net> wrote: >Sorry, a bit of an addendum, and I made a mistake. > >I actually looked at the category field in the database, and the data >already is in the case I need...but the echo is displaying it in lower >case...for example: > >"Downloading" is echoed by that line as "downloading". > >This isn't supposed to happen is it? No. In that case, find both (a) the code that's echoing it, and (b) the SQL query itself. One of them is modifying the value. >Also, I really meant Proper or Title case, not Upper...sorry. I did a search >for those terms at php.net and came up with no results for a function which >did that. Is there one? http://uk.php.net/manual/en/function.ucwords.php If you're stuck for a function and can't find it in the search engine (because you're not quite sure of keywords that would match) try browsing through the sections. In this case you want to modify a string, so look through the String functions section. -- Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space) | |||
| Featured Websites | ||||
|
![]() |
| Tags: case, upper |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Something sililar to case sentence | MihaP | PHP | 0 | 07-01-2007 4:20 PM |
| Good Case | John | Central Processing Unit (CPU) and Overclocking | 4 | 06-18-2007 10:50 AM |
| case studio under linux | misiek | Database | 0 | 06-10-2007 12:18 AM |
| case studio | misiek | Database | 0 | 06-10-2007 12:18 AM |
| Mad Kad's Show case | MadKad | Graphics Showcase | 10 | 03-07-2006 8:03 PM |
| Featured Websites | ||||
|