I set up phpmyadmin, and it works fine, but my code isn't working. id is
the correct column (it is the primary key), stock is the correct database.
CODE:
$qresult = mysql_query("SE LECT id FROM 'stock'");
echo ("START<P><HR>" );
while ($row = mysql_fetch_arr ay($qresult)) {
echo ($row ["name"]);
echo ("<br>");
}
echo ("<P><HR><P>END ");
OUTPUT:
START
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL
result resource in /home/houseproudlancs _co_uk/index_to_be.php on line 14
END
does anybody have any idea's why?
the correct column (it is the primary key), stock is the correct database.
CODE:
$qresult = mysql_query("SE LECT id FROM 'stock'");
echo ("START<P><HR>" );
while ($row = mysql_fetch_arr ay($qresult)) {
echo ($row ["name"]);
echo ("<br>");
}
echo ("<P><HR><P>END ");
OUTPUT:
START
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL
result resource in /home/houseproudlancs _co_uk/index_to_be.php on line 14
END
does anybody have any idea's why?
Comment