-4
這裏是403的出現如何解決它。如何在php中訪問權限
故宮
您沒有權限訪問/ babytradeshopapps/SELECT * FROM整體,其中在此服務器上登錄ID =嬰兒。
的Apache/2.2.8(Win32的)PHP/5.2.6服務器在本地主機端口80
$con1 = mysql_connect("127.0.0.1","root","password");
mysql_select_db("babytradeapps");
$sql1 = "Select LoginID , Password , Permission
from loginacc where Permission = 2 ";
$results = mysql_query($sql1,$con1);
echo "<tr><th>mebac</th></tr>";
echo "<table border=5 cellpadding=10>";
echo "<tr><th>ac</th><th>p</th><th>per</th></tr>";
while($row = mysql_fetch_array($results)) {
echo "<tr><td><form name='form' method='post' action='select * from overall where LoginID = {$row[0]}'><input type='submit' name='button' value='view' /></form></td><td><input type=text id='row0' name='row0' value='$row[0]' /></td><td><input type=text id='row1' name='row1' value='$row[1]' /></td>
<td><input type=text id='row2' name='row2' value='$row[2]' /></td><td><input type='submit' name='button' value='change' /></td></tr>";
}
echo "</table>";
這是什麼? '/ babytradeshopapps/select *從全局where LoginID = baby' – Ohgodwhy
將表單動作設置爲SQL查詢不會起作用,它需要是一個查詢頁面。你想用這個來達到什麼目的? –
如果你爲這個荒謬的URL得到了'403',那麼它可能是'mod_security',它會阻止它。 – mario