Courtney
02-25-2010, 04:30 AM
Hoping someone can help me before all my hair is pulled out. :confused:
I have an array named $arrFeeds:
Array
(
[0] => Array
(
[item id] => 9998
I cannot seem to get the code correct to insert the actual value (9998) into the database. I currently just get 0 inserted.
mysql_query("REPLACE INTO items (item_id) VALUES('$arrFeeds[0][item id]') ")
or die(mysql_error());
I can do echo $arrFeeds[0]['item id']; and get the value 9998.
I have an array named $arrFeeds:
Array
(
[0] => Array
(
[item id] => 9998
I cannot seem to get the code correct to insert the actual value (9998) into the database. I currently just get 0 inserted.
mysql_query("REPLACE INTO items (item_id) VALUES('$arrFeeds[0][item id]') ")
or die(mysql_error());
I can do echo $arrFeeds[0]['item id']; and get the value 9998.