# I want to know what is wrong with my code which was the question to Add...

###### Question:

I want to know what is wrong with my code which was the question to Add a form to your php file that has a user put in a Username with the method post. If the name exists in the array, do nothing. If the name does not, add an element to the array with the Username and all other values set to 0. Print out the new array. (PHP)

$array=array(array('username' =>"joeDoe",'tweets'=> 2000,"Followers"=>45,"Following"=>8), array('username' =>"JohnD", 'tweets'=>62000,"Followers"=>123,"Following"=>160), array('username' =>"computerSavy",'tweets'=>75,"Followers"=>1,"Following"=>25), array('username' =>"myTwitterAccount",'tweets'=>1800,"Followers"=>15,"Following"=>6)); echo " Add New name "; echo " " ; echo ""; echo " " ; if (isset($_POST['x']))

{

$new=$_POST['x'];

$check=false; foreach($array as $key=>$value)

{

if($value['username']==$new )

{

$check=false; break; } if(!$check)

$array=array('username'=>$new, 'tweets'=>0, 'Followers'=>0,'Following'=>0);

}

echo "";

##### Ning is suggested by Match the Meaning Synony toward the river For coch item below. choose...
ning is suggested by Match the Meaning Synony toward the river For coch item below. choose the word whose meaning is sugges the clue given. Then write the word in the space provided. d. haul For each it meaning on the lir 1. A forest fire made the frightened herd a demonstrate be stampede c. pledge ...
##### A pitot tube is used to measure the velocity of an air stream. The air has...
A pitot tube is used to measure the velocity of an air stream. The air has a temperature of 18°C and a pressure of 105 kPa 12 mm Hg If the differential height in a mercury manometer is 12 mm and the air is incompressible, the air velocity is most nearly (A) 38 m/'s o (B) 43 m/s (C) 48 ms (D)...