가능한 중복 :
mysql_fetch_array() expects parameter 1 to be resource, boolean given in selectmysql 페치 배열 오류?
나는 :)이 일어나는 이유는 .. 도움 무슨 뜻인지 모르겠어요 내 스크립트에 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\FBlike\like.php on line 104
.. 는 무엇입니까? 오류에
$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 } ?>
내가 마지막 mysql_error를()을 체크 할 것입니다 당신이는 mysql_fetch_array (를 호출하기 전에) – Scuzzy