- include "admin/cap/config.php" ;
- $sql=mysql_query ("SELECT * FROM cap") or die (mysql_error());
- for ($data=array();$row=mysql_fetch_assoc($sql);$data[]=$row);
- foreach ($data as $z)
- $cap=$z['capital'];
- settype($cap,"string");
- $n=strlen($cap);
- for ($i=0; $i<$n; $i++)
- {
- $a=substr($cap,$i,1);
- $x[]="../digital/".$a.".gif";
- }
- $num=count($x);
- for ($w=0; $w<$num; $w++)
- {
- echo "<img src=".$x[$w].">";
- }