Re: [PHP-DB] Re: Percentage...

2002-07-30 Thread JJ Harrison
OK, here is the answer in (unedited except for comments)code: $query = "select count(vid) as total_qs from poll_vote where pid = $pid"; // count the number of fields in the table $result = mysql_query($query) or die("Query failed: $query" . mysql_error()); $row = mysql_fetch_array($result);

RE: [PHP-DB] Re: Percentage...

2002-07-29 Thread César Aracena
Hi JJ. I know we all should do what you did, but I've seen this kind of mails quite a lot lately in these lists. I'm sure that many of you, like me, keep these mails for further reading and reference... it would be nice if you also state what was the answer to your original question. I mean, if yo