Jump to content

Change MySQL text in table to capitals


Rob (SA)
 Share

Recommended Posts

Hi folks,For those that know they can sure help.I have a script that places text form MySQL into a table, however I would like to view the table in capital letters.I am also led to believe the choice would be to incorporate "strtoupper" somehwere in my script.My script looks like this currently

echo '<tr><td bgcolor="#FFFFFF"><font style="font-size:10px" color="#00008B" face="Arial">';echo '<option value="'.$row['surname'].', '.$row['name'].'">'.$row['surname'].', '.$row['name'].'</option>';

Your advise here would be most welcome

Link to comment
Share on other sites

Hi,Elspark is South from where I stay.Approximatly 50kmDriving distance

echo '<option value="'.strtoupper($row['surname']).', '.strtoupper($row['name']).'">'.strtoupper($row['surname']).', '.strtoupper($row['name']).'</option>';hi rob, question: you wouldn't happen to live near "Elspark, Germiston" area?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...