Computer Webmaster Gaming Console Graphics Forum

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.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

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.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 5:11 PM   #1
Jeffrey Ellis
 
Jeffrey Ellis's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Upper case?

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



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 5:11 PM   #2
Andy Hassall
 
Andy Hassall's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Upper case?

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)
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:11 PM   #3
Jeffrey Ellis
 
Jeffrey Ellis's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Upper case?

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

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:11 PM   #4
Andy Hassall
 
Andy Hassall's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Upper case?

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)
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




All times are GMT +1. The time now is 12:09 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98