변수안에 최신글을 넣으려고하는데요... 정보
변수안에 최신글을 넣으려고하는데요...
본문
<?
$m206="<td align=\"left\" valign=\"top\"><table width=\"577\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><img src=\"/images/main/mainpromotion.jpg\" width=\"577\" height=\"333\" /></td>
</tr>
<tr>
<td height=\"21\"></td>
</tr>
<tr>
<td><table width=\"577\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr><td><table width=\"217\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"217\"><img src=\"/images/main/workprocess.jpg\" width=\"217\" height=\"17\" /></td></tr>
<tr><td width=\"217\" height=\"93\"><?=latest(\"basic\",\"m105\",4,52);?></td></tr></table>
<td><table width=\"217\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"217\"><img src=\"/images/main/board.jpg\" width=\"217\" height=\"17\" /></td></tr>
<tr><td width=\"217\" height=\"93\"><?=latest(\"basic\",\"m105\",4,52);?></td></tr></table>
<td><img src=\"/images/main/location.jpg\" width=\"144\" height=\"110\" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>";
?>
요런식으로 변수안에 latest를 써서 뿌려줄려고 하는데요. 잘 먹히질 않네요.
변수안에서 latest 사용 할 수 있는 방법을 알고 싶습니다.
$m206="<td align=\"left\" valign=\"top\"><table width=\"577\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><img src=\"/images/main/mainpromotion.jpg\" width=\"577\" height=\"333\" /></td>
</tr>
<tr>
<td height=\"21\"></td>
</tr>
<tr>
<td><table width=\"577\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr><td><table width=\"217\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"217\"><img src=\"/images/main/workprocess.jpg\" width=\"217\" height=\"17\" /></td></tr>
<tr><td width=\"217\" height=\"93\"><?=latest(\"basic\",\"m105\",4,52);?></td></tr></table>
<td><table width=\"217\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"217\"><img src=\"/images/main/board.jpg\" width=\"217\" height=\"17\" /></td></tr>
<tr><td width=\"217\" height=\"93\"><?=latest(\"basic\",\"m105\",4,52);?></td></tr></table>
<td><img src=\"/images/main/location.jpg\" width=\"144\" height=\"110\" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>";
?>
요런식으로 변수안에 latest를 써서 뿌려줄려고 하는데요. 잘 먹히질 않네요.
변수안에서 latest 사용 할 수 있는 방법을 알고 싶습니다.
댓글 전체
완전 모르겠습니다.
도와주세요....3시간째 ㅠ.ㅠ
latest를 변수처리해서 변수안에 넣으니깐 나오질 않아요. 소스보기하면 <?=latest?> 이런식으로 <?까지 다보이구여...
부탁드립니다.
도와주세요....3시간째 ㅠ.ㅠ
latest를 변수처리해서 변수안에 넣으니깐 나오질 않아요. 소스보기하면 <?=latest?> 이런식으로 <?까지 다보이구여...
부탁드립니다.
eval( $m206);
하면 어떻게 되나요?
하면 어떻게 되나요?
차라리 ob_start() 함수를 찾아 보세요.
lib/latest.lib.php 참고하시면 사용법을 아실 수 있을 겁니다.
lib/latest.lib.php 참고하시면 사용법을 아실 수 있을 겁니다.
네. 찾아보겠습니다. 답변 감사드립니다.