damn damn damn,
i have taken the code and put it in a page called 'countertest.php'
untill i get it working.
when i insert either lines
echo "Rows: " . mysql_num_rows($query);
or
list($count) = mysql_fetch_array($query);
i still get the same error.....
One last time, ill paste the whole page code in
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$conn= @mysql_connect("localhost","GWorsnup","bracknell")
or die("Err:Conn");
$rs= @mysql_select_db("kriminalyouth", $conn)
or die("Errπb");
$query = mysql_query ( "SELECT COUNT (*)AS number FROM walls_berks") ;
list($count) = mysql_fetch_array($query);
echo "there are " . $count . " images in the table";
?>
</body>
</html>
error = Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\ky\countertest.php on line 18
18 = list($count) = mysql_fetch_array($query);
ahhhh i hate this.....but i apreciate the help. π