ucwords() problem
Posted: Tue Apr 23, 2002 6:06 pm
Sami | Help us, help you. Please use
this works fine, but i have some records in the database which are ALL CAP and some are MIxed
i want to use ucwords() to make all of seem like this: This That Or, so the firt letter of each word is a CAP.
so far this is not working.
any ideas on how or why it is not working?
thanks in adv.
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
sorry to put all this code here but i want to show what i am trying to do.Code: Select all
<?
$t = mysql_query($query);
$name = ucwords($name);
$count = mysql_num_rows($t);
while(list($name, $bmp, $source) = mysql_fetch_row($t))
echo("<table width='490' border='0' height='107' align='center' ' bgcolor='$tone_table_bg'>
<tr>
<td height='19' width='436' bgcolor='$tone_name_bg'>
<p align='center'><b><font color='$tone_name'>$name - Bmp($bmp)</font></b>
</td>
</tr>
<tr>
<td height='76' width='436' valign='top' align='left' bgcolor='$source_bg'><font color=$source_font>$source</font></td>
</tr>
</table>");
}?>i want to use ucwords() to make all of seem like this: This That Or, so the firt letter of each word is a CAP.
so far this is not working.
any ideas on how or why it is not working?
thanks in adv.