In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> Ok I think your definently going in the right direction - when I put this
> into my "series" I seem to be getting this message for each result:
> "Resource id #40" or some other number that in some way represents
> something?  Any Clue?  Here is my SQL:
> 
> $rsum =mysql_query("select sum(rating) from ratings")or
> die (mysql_error());
> 
> John

You are missing quite a bit there - $rsum is merely a pointer to the data. 
Look at http://www.php.net/mysql_fetch_assoc which has an example of how 
to connect to mysql, issue a query and display the results of the query. 
Also, you might find http://www.php.net/extract useful in future.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to