[PHP] Re: resource id#

2005-09-20 Thread David Robley
Ross wrote: When I try to insert a field into my database it shows as Resource id#21? I must be doing something dim. Indeed you are; perhaps if you show a code snippet someone can guide you to the light :-) Cheers -- David Robley Do not believe in miracles -- rely on them. -- PHP

[PHP] re: resource id #

2005-09-20 Thread Ross
I was using the variable $link in a form. is it a reserved word or something?? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re: resource id #

2005-09-20 Thread Thorsten Suckow-Homberg
I was using the variable $link in a form. is it a reserved word or something?? Most likely the var $link is being used for db-operations (or similiar) previously, thus the return value of any resource-based operation is passed to the var $link. Check the all the scripts that are involved in

[PHP] Re: Resource ID??

2002-09-03 Thread Richard Lynch
When trying to do this query: $rsum =mysql_query(SELECT SUM(rating) FROM ratings where threadid = $ratevar)or die (mysql_error()); This is the output: Resource id #15 or some other seemingly arbitrary Resource ID number? First of all what is a resource ID and second how do I get it to actually