Image

Imagesourpatchkid wrote in Imagephp

I am passing the name of a table in a querystring and I'm displaying the table name non-pluraly (is plurarly a word haha). My problem is that some tables end in 'es' and some end in just 's'. With my code now it only works for 'es' ...

$table = $_GET['table'];
$newstring = strlen($table);
$strlength = $newstring - 2;


	CLICK EACH <? 
		for($i = 0; $i <?  $strlength; $i++) {
		       echo "" . strtoupper($table{$i}) . "";
		}
	?> FOR MORE INFORMATION


I have a few ideas on how I would do this correctly but I wanted some different input.

Thanks in advance.