just got it after faffin;
while($myrow = mysql_fetch_array($result)){
$zpcode = $myrow["zpcode"];
$zvars = $myrow["zvars"];
$ztype = $myrow["ztype"];
$ass .="$zpcode, $zvars.<BR>";
$word_array_title = explode("zRoomName", $zvars);
$tot_titles=count($word_array_title);
for($tot_t=1;$tot_t<$tot_titles;$tot_t++){
$word_array_desc = explode("zRoomDesc", $word_array_title[$tot_t]);
$tot_descs=count($word_array_desc);
if($word_array_desc[1] !=""){
$li = "\n\n";
$d = "d=";
}else{
$li = "";
$d = "";
}
$cutoff = explode("'", $word_array_title[$tot_t]);
$cutoffb = $cutoff[1];
$titleb .="t=$cutoffb\n$d$word_array_desc[1]$li";
$titleb = str_replace("$tot_t='", "",$titleb);
$titleb = str_replace(".'", ".",$titleb);
$titleb = str_replace("-'", "",$titleb);
$titleb = str_replace(" ", " ",$titleb);
}
}
which gives me;
t=GROUND FLOOR
t=ENTRANCE HALLWAY
d=Large storage cupboard.
t=SHOWER ROOM
d=Tiled shower cubicle with chrome fittings throughout. Wall mounted wash hand basin. Low level WC. Chrome heated towel radiator. Extractor fan. Halogen ceiling spotlights. Fully tiled to dado rail. Limestone flooring.
t=UTILITY ROOM
d=Wall and base units. Stainless steel sink and drainer. Tiled splashbacks. Plumbing for washing machine. Space for dryer. Access to:
t=GARAGE
d=Fitted shelving.
t=Stairs up to:-
t=STUDY
d=Window directly overlooking the garden.
t=REAR BEDROOM/RECEPTION ROOM
d=Rear window. Glazed door giving access to the garden.
t=Stairs up to:-
t=FIRST FLOOR
t=FRONT RECEPTION ROOM
d=Two large front windows. Circular window. Three uplighters.
t=HALLWAY
d=Entryphone. Stairs up to:
t=DINING ROOM
d=A vaulted room which is overlooked from the reception room. Two windows overlooking the garden. Wooden flooring throughout. Ample space for table and chairs, etc.
t=KITCHEN
d=Range of wall and base units, having ample working surfaces, sink unit and drainer, fully tiled splashbacks, integrated wall mounted oven, Neff four ring gas hob, Neff stainless steel extractor hood, integrated Neff microwave, integrated fridge and freezer. Window overlooking the garden.
t=Stairs up to:-
t=SECOND FLOOR
t=FRONT BEDROOM
d=Front window.
t=BATHROOM
d=Fully tiled white bath with separate shower above, chrome fittings throughout, stylish glass shower screen, wash hand basin inset vanity unit, low level WC, chrome heated towel radiator. Fitted glass shelf. Shaver point. Fully tiled walls. Halogen ceiling spotlights. Velux window. Limestone flooring.
t=HALLWAY
d=Cupboard housing the hot water cylinder with shelving above. Stairs up to:
t=REAR MASTER BEDROOM
d=Two rear windows. Wall of fitted wardrobes. Ceiling spotlights. Ample space for large bed. En suite to:
t=BATHROOM
d=White bath with Victorian style chrome mixer taps and shower attachment, separate shower above, fitted shower screen, wash hand basin, with chrome mixer taps, inset vanity unit, low level WC. Fully tiled walls. Velux window. Tiled flooring.
t=HALLWAY
d=Skylight.
t=OUTSIDE
t=GARDEN
d=Mainly paved with flowerbed borders. Ample space for table and chairs, barbecue, etc.
t=OFF STREET PARKING