Is there anyway that you can get information from a field and instead of it printing out what it says in the field something different?
E.g.
I have a list of variables at the top of a page that change the real field value into a more readable format...
if ($lala = "main") { $main1 = "Main Listings"; }
This works when the variable main is used in the address and prints out the variable where you specify main1
All thats ok I can get that to work ... but here comes the next part that I can't get to work:
I want it to print out 'Main Listings' when it gets a 'main' in the 'lala' field.
This is what I've got so far:
printf("Main: %s</p>\n", $row["lala"]);
Can I get this to print out 'Main Listings' instead of 'main' ?
Any help would be much appreciated ...
Bobby