텍스트는 HTML 형식 단락 태그로 저장됩니다.MySQL에서 html 형식으로 저장된 데이터의 경우 PHP에서 하위 문자열을 사용하는 방법?
필드 이름 : DESCR
저장된 데이터:
내가 PIN이 필요 : 테이블에 저장 구조에만 datas 위
<html>
<head>
<title></title>
</head>
<body>
<div class="campusInfoNamesake">
<p>If someone had said to me ten years ago that autism and the therapeutic benefits of gardening will become your life, I wouldn’t have believed them.</p>
<p>Although it’s still very early days, things are starting to take shape on my smallholding in Ceredigion, West Wales.</p>
</div>
</body>
</html>
가 울부 짖는 소리 MySQL의 테이블 이미지를 볼 수 본문 태그에만 100 문자열. 나는이 c를 사용했다. ode : <?php echo substr($row01[descr], 100); ?>
이 코드를 사용하면 결과를 얻을 수 없습니다. 도와주세요.
$ row01 [descr] 데이터가 있는지 확인하십시오. –