В чем у меня ошибка?
Вот код
подскажите, что не так?
PHP:
<?php
include('config.inc.php');
include('inc/connect.php');
$resultone = mysql_query("SELECT title,meta_d,meta_k,text FROM setting WHERE page='people'",$db);
$myrowone = mysql_fetch_array($resultone);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta type="description" content="<?php echo $myrowone['meta_d']; ?>" />
<meta type="keywords" content="<?php echo $myrowone['meta_k']; ?>" />
<title><?php echo $myrowone['title']; ?></title>
<link rel="stylesheet" type="text/css" href="template/style.css" />
</head>
<body>
<table align="center" class="container"><tbody><tr><td>
<div id="head" align="center"></div>
<table class="inf"><tbody><tr>
<td width="40">
</td>
<td class="left">
<?php
include('inc/menu.php');
?>
</td>
<td class="content">
<?php echo $myrowone['text']; ?>
<?php
$result = mysql_query("SELECT id,title,description FROM people",$db);
$myrow = mysql_fetch_array($result);
do{
printf ("<table align='center' class='pep'>
<tr>
<td class='pep_title'>%s</td>
</tr>
<tr>
<td> </td>
</tr>
</table>", $myrow["title"]);
}
while ($myrow = mysql_fetch_array ($result));
?>
</td>
</tr></tbody></table>
<div id="footer"></div>
</td></tr></tbody></table>
</body>
</html>
а вот ошибки.Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in W:\home\bafosi.ru\www\people.php on line 30
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in W:\home\bafosi.ru\www\people.php on line 41
подскажите, что не так?