Php yeni sayfaya kullanıcıyı zorlamak.

0 Cevap

Hello I'm a newbie web programmer. My background is writing Windows applications with sql.

Ben Php benim 1 veri giriş ekranları kuruyorum.

I have a search form that links to a form that displays records in a grid. On each row of the grid I have a delete url to allow the user to remove a record. This links to a form delete.php (which calls the sql to remove the record).

İdeal otomatik olarak yerine bunu yapmak için bir linke tıklamanız kullanıcıyı zorlamadan daha arama formuna kullanıcı çekmek istiyorum.

I have used ob_start with the header to do this elsewhere but cannot get it to work on this page. Is there another way to do it?

(Using php 5 as part of LAMP) file delete.php

<?php 
$id = $_GET['recordID'];
//ob_start();
require_once('connections/local.php'); 

mysql_select_db($database_local, $local);

mysql_query("DELETE FROM user_access WHERE id = {$id}") or die(mysql_error());
echo("Record ".$id." deleted");
echo("<br>");
//header("location:http://localhost/search7.htm);
//ob_flush();
echo("<a href=\"http://localhost/search7.htm\">Search for Members</a>");

?>

0 Cevap