An efficient way to save an Array and its Keys to a database

Richards

New Member
I am trying to save lots of variables to a database and its getting ridiculous now. I am using PHP and MySQL.Is there a way, I can get the array value and the array keys (array keys are exactly saqme as the table column/field names) in one go without having to add a new variable and table column pair.To be honest, I just need help with constructing the SQL String only, the rest is setup for me.I can add the new column to the database table when I have to store a new variable. Thanks all for any help
 
Back
Top