Just replace the spaces in the field "NAME" by a non-breaking space (= ) as mentioned above but also by any other character(s) for your choice.
while($row = mysql_fetch_object($rs)){
array_push($items, $row);
}
becomes
while($row = mysql_fetch_object($rs)){
$row['NAME']=str_replace(' ', ' ', $row['name']);
array_push($items, $row);
}
it's working.. thanks a lot