Jump to content

phido

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by phido

  1. Note the small symbol near the start of the array should read as: [0] [a zero in brackets]
  2. Hello All, Working on a php / mysql project to do exactly what is described here … http://mechiwiki.com/tech/code/inserting-array-values-into-mysql-table/ Using print_r my array displays as follows: Array ( [0] => Array ( [apples] => 70 [oranges] => 30 [pears] => 90 ) [1] => Array ( [apples] => 30 [oranges] => 20 [pears] => 10 ) [2] => Array ( [apples] => 60 [oranges] => 50 [pears] => 10 ) ... ) The problem I’m having arises in the while statement where I’m trying to ready the values for insertion into the mysql query. Instead of producing a properly formatted set of values for use in the query, the while statement produces this … 70, 30, 90, '', '', ''30, 20, 10, '', '', ''60, 50, 10, '', '', '' Any thoughts on how to fix this, or other ways to approach this, are welcome. Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.