简体   繁体   English

标头php不起作用

[英]header php doesn't work

I made a code in php where a query is made I can not publish database connection data because they are confidential, but the code works fine, the query does work, the problem is that the header does not work only shows me the White screen 我在php中创建了一个代码,在那里进行查询我无法发布数据库连接数据,因为它们是保密的,但代码工作正常,查询确实有效,问题是标题不起作用只显示我的白屏

$buscar = 'DELETE FROM usuarios WHERE idusuario = "'.$_POST['prop'].'"';
$usuariorecord = mysqli_query($landier, $buscar);
$idi=mysqli_insert_id($landier);


$go = "../final.html";
header(sprintf("Location: %s", $go));

?>

thank you 谢谢

You have query of remove data then why are you fetching inserted id? 您有删除数据的查询然后为什么要获取插入的ID?

Remove this line from code then try: 从代码中删除此行,然后尝试:

$idi=mysqli_insert_id($landier);

mysqli_insert_id($ landier)//如果最后一个查询不是插入或更新查询,则返回零.....删除该特定行......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM