当我点击我的搜索提交按钮时,每个结果都有一个带有“>”的段落这是放在页面顶部,我不知道它来自哪里。这是我的代码(使用wordpress)
[insert_php]
$db_host = "localhost";
$username = "root";
$password = "";
$dbname = "Tickets";
// Create connection
$conn = new mysqli($db_host, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
if((isset($_POST['Search'])) && ($_POST['Search'] != '')){
$search = $_POST['Search'];
$sql = "SELECT * FROM `Problem_Solutions` WHERE (`Problem_Type` LIKE '%$search%') OR (`Solution_Title` LIKE '%$search%')";
$query = mysqli_query($conn, $sql);
$count = mysqli_num_rows($query);
if ($count > 0){
echo "<table><th>Title</th><th>Solution</th><th>Count</th>";
while ($row = mysqli_fetch_array($query)){
echo "<tr><td>".$row['Solution_Title']."</td>";
echo "<td>".$row['Solution']."</td>";
echo "<td>".$row['Count']."</td>";
echo "<<td><form name='form' method='POST'><input style='background:#6B8E23;' type='submit' name='".$row['Solution_ID']. "' value='This Solution Solved My Problem' /></form></td></tr>";
} echo "</table>";
}else{
echo " 0 results found";
}
}
$conn->close();
[/insert_php]
答案 0 :(得分:0)
你的问题在这一行:
echo "<<td><form name='f
删除第一个<