<?
$db = mysql_connect("host","username","pass");
if(!$db) { echo "Error: Could not connect"; }
mysql_select_db("database", $db);
$query = "select * from database";
$result = mysql_query($query);
$numrows = mysql_num_rows($result);
while ( $row = mysql_fetch_array($result)) {
echo "<p>Name: " . $row[uName] . "!";
}
?>
that is what im trying to do i just want to be able to grab info from the database... not integrate it all just a simple name from there would be ok but i keep getting errors on my page
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
it doesnt like mysql_fetch_array or mysql_num_rows
can anyone help? plzz
thanks
ae