gpt4 book ai didi

php - 为什么这个 SQL 查询不起作用?

转载 作者:行者123 更新时间:2023-11-29 04:31:13 25 4
gpt4 key购买 nike

此脚本必须在每次刷新时更新内容,但无法正常工作。帮帮我

$yp = mysql_query("select id from yyy where twitterid = '$tid'");

$qq = "update yyy set twitterid = '$tid',
twitterkullanici = '$twk',
tweetsayisi = '$tws',
takipettigi = '$tkpettigi',
takipeden = '$tkpeden',
nerden = '$nerden',
bio = '" . mysql_real_escape_string($bio) . "',
profilresmi ='$img',
ismi = '$isim'
where id = '$yp'";
$xx = mysql_query($qq);

最佳答案

看起来您没有从变量 $yp 中获取值。

你需要做的

$row = mysql_fetch_row($yp);

然后

id = '.$row[0] .'

在你的更新查询中

关于php - 为什么这个 SQL 查询不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2208650/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com