Hi all,
I am trying to get the value from the database to display in UPPERCASE. At the moment they are displaying exactly as they are in the database.
Can anyone see what i am doing wrong?
<?
$link = mysql_connect(\'localhost\', \'\', \'\');
mysql_select_db(\'melb\');
$query = \"SELECT * FROM categories WHERE CatParent = \'1\'\";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
$CatName = strtoupper ($CatName);
echo \"<DIV align=center>\";
echo \"<table border=0 cellpadding=0 cellspacing=0 height=21 width=110>\";
echo \"<tbody>\";
echo \"<tr>\";
echo \"<td background=\\"Resinet_files/button_bg.gif\\">{$row[\'CatName\']}</td>\";
.....more code here