[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

Re: [PHP] Average Number For Math Functions

2002-08-30 Thread JohnP
gs; 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]] Sent: Friday, August 30, 2002 3:10 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Average Number For Math Functions I am st

[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

[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

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
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 AM To: [EMAIL PROTECTED] Subject: [PHP] Average Number

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread JohnP
01c24fd5$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: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 21:25 Subject: Re: [PHP] Averag

[PHP] Re: Blank db entry??

2002-08-26 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 no info in the db ro

[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: - form enctype=multipart/form-data action=postbit.php method=post input type=hidden name=5400 value=1000 Send this file: input name=userfile

[PHP] Blank db entry??

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