I have problem with extra caracter at the end in my output.
Could any 1 help me ?
We first do some stuff with mysql;
[CODE] while ($mysql_array = $db->fetch_array()) {
$rednibroj = $mysql_array['rednibroj'];
$nazivbanera = $mysql_array['nazivbanera'];
$image .= "$mysql_array[slikabanera]";
$urlbanera .= "$mysql_array[urlbanera],";
$image = $image.',';
} [/CODE]
print $image.'';
The result of this is like this :
var imgList = new Array("ban.jpg,banner.jpg,");
Notice the extra caracter at the end of file name !
How can i remove this so it looks like this.
var imgList = new Array("ban.jpg,banner.jpg");
Thank you for your help in advance.