001.<?
002.include "../connect.php";
003.
004.$txt=$_POST['txt'];
005.if ($field=='webboard_answer_katoo') {
006.$sql="select * from webboard_answer_katoo where post like '%$txt%' ";
007.$result=mysql_db_query($dbname,$sql);
ทดลองเปลี่ยนหน่ะครับ
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
<?php
include "../connect.php";
if ($_POST['txt']<>'') {
$_SESSION['txt'] = $_POST['txt'];
}
if ($field=='webboard_answer_katoo') {
$sql="select * from webboard_answer_katoo where post like '%".$_SESSION['txt']."%' ";
$result=mysql_db_query($dbname,$sql);