Iframe中的PHP不在IE中工作
我有一个程序,它从PHP文件中搜索数据库,并通过输出链接回某个文件。 它在除IE之外的所有浏览器中都能完美工作。我不知道为什么。 这是我的密码:Iframe中的PHP不在IE中工作,php,html,internet-explorer,iframe,Php,Html,Internet Explorer,Iframe,我有一个程序,它从PHP文件中搜索数据库,并通过输出链接回某个文件。 它在除IE之外的所有浏览器中都能完美工作。我不知道为什么。 这是我的密码: <?php if( isset( $_POST['schoolname'] ) && strlen( trim( $_POST['schoolname'] ) ) > 0 ) { $school = filter_input(INPUT_POST, 'find', FILTER_SANITIZE_STRIN
<?php
if( isset( $_POST['schoolname'] ) && strlen( trim( $_POST['schoolname'] ) ) > 0 )
{
$school = filter_input(INPUT_POST, 'find', FILTER_SANITIZE_STRING);
$school = $_POST['schoolname'];
#connecting to the database
$conn = mysql_connect("localhost", "root");
mysql_select_db("finalproject");
$sql = "select * from presentations where school like '%$school%'";
$result = mysql_query($sql, $conn) or die(mysql_error());
#this is the array that stores and displays the results of the search
if ( mysql_num_rows($result) >0)
{
while ($newArray = mysql_fetch_array($result))
{
$school = $newArray['school'];
$date = $newArray['date'];
$place = $newArray['place'];
$time = $newArray['time'];
echo $school . ", " . $place . ", " . $date . ", " . $time . "<br />" . "<br />";
}
}
else
{
echo "Record not found" . "<br />" . "<br />";
}
mysql_close($conn);
}
?>
<!-- The form in which the search happens -->
<form action=" " method="post">
School's name: <input type="text" name="schoolname">
<input type="submit" name="button" value="Search">
</form>
学校名称:
这只是我在IFrame中的代码。。它们不再得到维护。看到了吗?相反,学习,并使用or-将帮助您决定哪一个。如果您选择PDO,.Hi,则不会指定它以何种方式不起作用。你应该这么做。@Pekka웃 哦,对不起,我本想把它放进去的。每当我运行搜索时,它都会给我一个“页面无法显示您正在查找的页面无法显示,因为使用了无效的方法(HTTP动词)尝试访问”^^^^^^尽管如此,对于普通S.O用户来说,每天查看10次有点乏味。错误可能是
action=”“
tryaction=“”