php - how to display data in format using javascript extract from mysql? -
this render data in view when extract database when "exception" comes want show in new line. want display them in proper manner.
the requirements of chapter apply following: (1) new buildings or portions thereof used health care occupancies (see 1.4.1) (2) additions made to, or used as, health care occupancy (see 4.6.6 , 18.1.1.4) exception: requirement of 18.1.1.1.1 shall not apply additions classified occupancies other health care separated health care occupancy in accordance 18.1.2.1(2) , conform requirements specific occupancy in accordance chapters 12 through 17 , chapters 20 through 42, appropriate.(3) alterations, modernizations, or renovations of existing health care occupancies (see 4.6.7 , 18.1.1.4) (4) existing buildings or portions thereof upon change of occupancy health care occupancy (see 4.6.11) exception*: facilities authority having jurisdiction has determined equivalent safety has been provided in accordance section 1.5.
i want display in following order in dynamically
the requirements of chapter apply following:
(1) new buildings or portions thereof used health care occupancies (see 1.4.1)
(2) additions made to, or used as, health care occupancy (see 4.6.6 , 18.1.1.4)
exception: requirement of 18.1.1.1.1 shall not apply additions classified occupancies other health care separated health care occupancy in accordance 18.1.2.1(2) , conform requirements specific occupancy in accordance chapters 12 through 17 , chapters 20 through 42, appropriate.
(3) alterations, modernizations, or renovations of existing health care occupancies (see 4.6.7 , 18.1.1.4)
(4) existing buildings or portions thereof upon change of occupancy health care occupancy (see 4.6.11) exception*: facilities authority having jurisdiction has determined equivalent safety has been provided in accordance section 1.5.
while doing in javascript. content in section_data.title. how can manage this.
i have feeling line breaks aren't in html. try using str_replace('\n', '<br>', $queryresultstring);
in php before writing encoding json (replacing $queryresultstring whatever strings you're sending through json).
let me know if works, or can try else.
Comments
Post a Comment