Question : Inputting php array into mysql database

I've set up a SOAP server that takes a bunch of requested information, and puts it into an array, but when I try to put the array into a database, I get nothing.

This is what I've been doing:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
//Connect to Database
$hostname='xxxxxx';
$username='xxxxxx';
$password='xxxxxx';
$dbname='xxxxxx';
$con = mysql_connect($hostname,$username, $password);
mysql_select_db($dbname, $con);


if (!$con)
  {
  die('Unable to connect to database! Please try again later.');
  }

//Check Array to make sure data is correct
foreach ($resultArray['MapsRecords'] as $dwin_data)
{
$temp = '<pre>' . print_r($dwin_data,true) . '</pre>';
mail('[email protected]', 'Suject', $temp);
}


//Result from data check
<pre>Array
(
   [Id] => a0AA0000001B48bMAC
   [Annual_Rent__c] => 258000.0
   [Cap__c] => 9.0
   [City__c] => Jackson
   [Metro_Area__c] => Nothrbrook
   [Options__c] => 32.0
   [Price__c] => 3166000.0
   [Remaining_Years__c] => 18.0
   [State__c] => Mississippi
   [Status__c] => Available
   [Tenant__c] => Walgreens
)
</pre>


//Enter Data
foreach ($resultArray['MapsRecords'] as $dwin_data)
{
	$insert="INSERT INTO basicInventory
	VALUES ('$dwin_data')";
	mysql_query($insert);
}


What am I doing wrong?

Answer : Inputting php array into mysql database

I think this will do it.  However, I normally assign the array items to individual variables so I don't have to deal with single and double quotes in the right and wrong place.  Yes, it's a lot of typing.  We're really high-tech secretaries.
1:
$insert="INSERT INTO basicInventory ( Id, Annual_Rent__c, Cap__c, City__c, Metro__Area__c, Options__c, Price__c, Remaining_Years__c, State__c, Status__c, Tenant__c) VALUES ( '$dwin_data['Id']', '$dwin_data['Annual_Rent__c']', '$dwin_data['Cap__c']', '$dwin_data['City__c']', '$dwin_data['Metro_Area__c']', '$dwin_data['Options__c']', '$dwin_data['Price__c']', '$dwin_data['Remaining_Years__c']', '$dwin_data['State__c']', '$dwin_data['Status__c']', '$dwin_data['Tenant__c']')";
Random Solutions  
 
programming4us programming4us