How to store spinner value into phpmyadmin?
===

I'm new to android and now I am trying to store value into web database but after I press submit it did not store into database. What did I miss in the code there?


    postParameters.add(newBasicNameValuePair("cartype",spincartype.getSelectedItem().toString()));

`private void setupViewComponent()
		{
			spincartype = (Spinner)findViewById(R.id.regbkspin_cartype);
			carPrice = (TextView)findViewById(R.id.regbket_price);
			
			String [] carlisttype = new String [] {"", "Proton Saga (6 hours)", "Proton Saga (12 hours)", "Proton Wira (6 hours)", "Proton Wira (12 hours)"};
			ArrayAdapter<String> adapcarlist = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, carlisttype);
			adapcarlist.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
			spincartype.setAdapter(adapcarlist);

			spincartype.setOnItemSelectedListener(cartypeLis);
			
		}

private Spinner.OnItemSelectedListener cartypeLis = new Spinner.OnItemSelectedListener() {

			@Override
			public void onItemSelected(AdapterView parent, View v, int position, long id) 
			{
				
				// TODO Auto-generated method stub
				cartype = parent.getItemAtPosition(position).toString();
				
				if (cartype.equals("Proton Saga (6 hours)"))
				{
					carPrice.setText("RM 160");
					//carPrice.getText().toString();
					
				}
				
				if(cartype.equals("Proton Saga (12 hours)"))
						{
							carPrice.setText("RM 240");
							
						}
				
				if(cartype.equals("Proton Wira (6 hours)"))
				{
					carPrice.setText("RM120");
					
				}
				
				if (cartype.equals("Proton Wira (12 hours)"))
						{
							carPrice.setText("RM 200");
							
						}
				
			}

			@Override
			public void onNothingSelected(AdapterView parent) {
				// TODO Auto-generated method stub
				
			}
		
		};`



Thanks in advance!