[PHP] Re: auction scripts?

2002-09-01 Thread JohnP
PHP Auctions I think you can find it on http://www.hotscripts.com if not just search google "Jaxon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > > can anyone relay experience or recommend a php-based ebay-style auction > script? > > tkx, > jaxon >

[PHP] Resource ID??

2002-08-30 Thread JohnP
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

Re: [PHP] Average Number For Math Functions

2002-08-30 Thread JohnP
; doing this will show you the sum of all the scores: > > select sum(score) from ratings; > > eg, if the scores were 5, 2, 5, 8, and 2 then this sql should return 22 > (unless I added it wrong... :/ ) > > -Original Message- > From: JohnP [mailto:[EMAIL PROTECTED]] >

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
ot;>news:02d901c24fd5$aba46020$7800a8c0@idiom... > What database are you using? > > MySQL has a SUM function which automatically selects the total of a column. > > -VolVE > > - Original Message - > From: "JohnP" <[EMAIL PROTECTED]> > To: <[E

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
CTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > just sum them up and divide by the count - making sure to deal with a count > of zero > > -Original Message- > From: JohnP [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 30, 2002 10:56

[PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
Ok I looked at all the math functions for PHP but saw no way of returning the average of a set of numbers - I plan on using this for a rating system - any help? -- John

[PHP] Re: Blank db entry??

2002-08-25 Thread JohnP
Forgot to add one thing - I don't need to add the new number after detection to the db but rather just print it out "Johnp" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok I have a script done but it does not work - If there is

[PHP] Blank db entry??

2002-08-25 Thread JohnP
is completly empty?? Thanks - JohnP

[PHP] Can someone - anyone see my error?

2002-08-25 Thread JohnP
Ok after being blasted for not looking on PHP.net first I have now returned none the wiser! :D Here is the post file: - Send this file: Here is the post handler file: And here is the error I get: -