- Код: Выделить всё
<?
$link = mysql_connect("localhost", "***", "***");
mysql_select_db('XXX', $link);
$result = mysql_query("SELECT FROM group");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
printf ("ID: %s Name: %s", $row[0], $row[1]);
}
mysql_close($link);
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:/XXX/index.php on line 6