6997 Shares

Can you help me fix my php code?

Can you help me fix my php code? Topic: Parenthesis in html
June 19, 2019 / By Decima
Question: i keep getting:Parse error: parse error, unexpected '{' in /gaia/class/cs0101/cs010129/html/freegum... on line 13 this is my code: Oops, you forgot to supply some information. Please correct the problem below.
"); } elseif ((!ereg("[0-9]",$score_1) || (!ereg("[0-9]",$score_2) || (!ereg("[0-9]",$score_3)) { echo("Please restrict your input to only numbers.
"); } } else { $avg=($score_1 + $score_2 + score_3)/3 if ($avg >= 29) { echo $total = 0 } else { echo $total= ((29 - $avg) * (7/10)) } print("The freegumpher handicap is:". $total); } } ?>
Enter your three most recent Freegumpher scores to calculate Handicap:


Best Answer

Best Answers: Can you help me fix my php code?

Brittany Brittany | 5 days ago
You're missing some parentheses here: ((!ereg("[0-9]",$score_1) || (!ereg("[0-9]",$score_2) || (!ereg("[0-9]",$score_3)) Try this: elseif ((!ereg("[0-9]",$score_1)) || (!ereg("[0-9]",$score_2)) || (!ereg("[0-9]",$score_3)))
👍 238 | 👎 5
Did you like the answer? Can you help me fix my php code? Share with your friends

We found more questions related to the topic: Parenthesis in html


Brittany Originally Answered: What could be considered "brand new" genetic code and not just a mutation of existing code?
Hans, *ALL* mutations are mutations of existing code. New genes do not appear out of nothing. They are modifications to existing genes. (The ability of these modifications, including the type of mutation called a 'gene duplication', to produce new genes, is a separate question ... but I am honoring your desire to stick to the topic of only what qualifies as "new genetic code".) And so a "snake with feathers" (a snake hatching with so much "new genetic code", its scales are now fully formed bird feathers) is an unreasonable example. The odds of that many genetic changes occuring in a *SINGLE INDIVIDUAL* are astronomically low. It may be someday be possible to trace all those thousands of mutations that would be necessary to turn a cold-blooded scaled animal to a warm-blooded feathered animal over thousands of generations. But that is currently not doable given today's level of computational genetics. So how about a more reasonable example: A new gene. Or a new protein. Would you accept that? In your last question, it became clear that there are three questions we need to address one-at-a-time: 1) Is a new gene an example of "new genetic code"? 2) Can modifications to existing genes result in a new gene? 3) Is there evidence that this not only *can* occur, but *has* occurred? I'm giving you huge kudos for the intelligence to address #1 first! Because if the answer is 'no' ... then #2 and #3 are irrelevant. If the answer to #1 is 'yes', then I'll be glad to explain why the answer to #2 is yes ... but we should do that in a separate question. I tried to answer #3 in your last question, and 'raisemeup' just ridiculed #2 (and I didn't see his answer in time to rebut). But there is no point in addressing #2 or #3 until we agree on #1. Would you agree? So how about it: In your eyes, Hans, would a new gene ... one that codes for a different protein, with new properties, that does something different from other proteins ... qualify as "new genetic code"? -------------- {edit} ---------------- >"wouldn't there be limitations to the mutations ability to come up with completley new traits, even if you allowed unlimeted generations of offspring?" One word: Why? .... Why would there be a "limitation"? If a small number of generations can produce small amounts of change (like between a wolf and a chihuahua in a few thousand generations), then why would an "unlimited" number of generations produce only "limited" amount of change? What would cause this "limit"? But you're changing the question. You asked what constitutes "new genetic code". Now you're asking what the *limits* of that new genetic code is. Can we address one question at a time?
Brittany Originally Answered: What could be considered "brand new" genetic code and not just a mutation of existing code?
First I'd love to factor out that this can be a mistake to suppose that mutation best destroys or eliminates knowledge, within the majority of instances knowledge is both duplicated or copied incorrectly with a loss, acquire or a difference in base pairs. Here is an illustration of a good documented remark of acquirement of latest genetic knowledge - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - In 1975 a pressure of Flavobacterium used to be determined that used to be competent of digesting byproducts of nylon manufacture. These byproducts don't exist evidently and would no longer were determined on the earth till nylons invention in 1935. The genuine enzymes (now referred to as nylonase) used to digest the compounds had been abnormal in that that they had no end result on parts as opposed to the nylon byproducts. Upon learning the micro organism extra, it used to be deduced that a certain pressure had constructed the enzyme as a result of a body shift in it is DNA - that's, another base pair being further to a certain codon as a result of a copying errors, disrupting gene design and thoroughly eliminating it is potential to supply the amino acids for it is normal set of digestive enzymes however giving it this novel new nylonase enzyme. It will have to be famous that whilst nylonase is strong at breaking down nylon byproducts, it's not up to 10% as strong because the bacterium's normal enzymes had been on its normal meals assets.
Brittany Originally Answered: What could be considered "brand new" genetic code and not just a mutation of existing code?
no... say a generation can vary by as much 5% from it's parent generation F0 is 0% different F1 is 5% different F3 is 10% different ... F20 is 100% different the argument that "new" information is needed is suppose to show that only so many, and so different, traits can evolve... at BEST (and this is being generous) it would explain how much change could take place *WITHIN A SINGLE GENERATION* cumulative changes over successive generations = accumulated (mass) change

Alisha Alisha
Description '; ?> you need to flee the ' via the ['text cloth'] factor (so this is ['text cloth']) :D desire that facilitates
👍 100 | 👎 -1

Alisha Originally Answered: I have a 2000 GMC 1500 giving code p0300 random/multiple misfire. Won't pass smog due to code & check engine?
Yes. Properly diagnose the cause of the misfire and repair. Since you're stumped so far, take the truck to a shop. No use wasting money on guesses.

If you have your own answer to the question parenthesis in html, then you can write your own version, using the form below for an extended answer.