gpt4 book ai didi

php - mysql 获取数组错误?

转载 作者:行者123 更新时间:2023-11-29 05:42:07 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select

我收到 警告:mysql_fetch_array() 期望参数 1 为资源,在我的脚本的第 104 行 C:\wamp\www\FBlike\like.php 中给出的 bool 值..我不确定这意味着什么以及为什么会这样……求助 :)?

$like_id=mysql_real_escape_string($_GET['id']);

$sql=mysql_query("select * from likes WHERE id=$like_id DESC LIMIT 1");
while($row=mysql_fetch_array($sql))
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="description" content="<?php print $row['like']; ?>"/>

<meta name="keywords" content="<?php print $row['like']; ?>" />

<meta property="og:description" content="Click to See More..." />

<meta property="fb:app_id" content="" />



<meta property="og:title" content="<?php print $row['like']; ?>"/>

<meta property="og:type" content="activity"/>

<meta property="og:url" content="http://www.fbquote.me/like.php?id=<?php print $row['id']; ?>" />

<meta property="og:site_name" content="pDank" />
<title><?php print $row['like']; ?></title>

<?php } ?>

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