in reply to Divide by...

Sorry. I was getting an error everytime. It said I could not divide by 0. What happened, is I'm getting my values from a MySQL database, then counting the entries, and putting them into an HTML table. I'm dividing two of them to get the ratio, but some of the values where 0, so I had to add a unless the string is equal to 0. Then it worked.

I thought I was doing it wrong, but I guess It was just that. Thank you though!!!

BTW, Last time I asked a MySQL syntax question here I got downvoted, so, can you please tell me where a good place to ask is, I just joined the MySQL list, and I asked a question there this morning, and it still has not been answered, nor have I seen it come across my list email account. So Maybe there is a better place to ask?

thx,
Richard

Replies are listed 'Best First'.
Re: Re: Divide by...
by pfaut (Priest) on Feb 15, 2003 at 03:04 UTC

    You could try first asking your questions in the chatterbox. A lot of questions that aren't related to perl get answered there. If there aren't any monks around that can answer your questions, someone might be able to point you in the right direction to a better place to ask. If your question would be better asked in a SoPW post, the people in the chatterbox will tell you that.

    --- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';