By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

How to insert dynamic field values into mysql table?

P: 1
Hi! How to insert dynamically added values of the select list into mysql table? $10 any working solution pls.
Expand|Select|Wrap|Line Numbers
  1. function SaveNewCampaign()
  2. {
  3. global $wpdb;
  4. $table_name= $wpdb->prefix.'campaigns';
  5. $data = array();
  6. $data["name"]=$wpdb->escape($_POST["name"]);
  7. $data["goal_amt"]=$wpdb->escape($_POST["goal_amt"]);
  8. $data["reward"]=$wpdb->escape($_POST["reward"]);
  9. $data["rewards"]=$wpdb->escape($_POST["rewards[]"]);
  10. }
  11.  
Thanks in advance.
Attached Images
File Type: jpg 1111.jpg (21.5 KB, 120 views)
Jun 11 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.