• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Value of Select List in database

Value of Select List in database 16 years 6 months ago #5375

Hi, I'm using this:

$city = $_POST;
$data = mysql_query(\"UPDATE josjoomla_comprofiler SET cb_city = '\".$city.\"' WHERE id = '\".$mydata.\"' \")
or die(mysql_error());

to update the value of city in my database. This works great, but now I want to do the same for state, which is a drop down (select list), but it only puts Array into the database field, if I use print_r for the Array, it prints 1, so there seems to be something wrong?
The administrator has disabled public write access.

Re:Value of Select List in database 16 years 6 months ago #5424

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Hello,

You can try this:
$state = $_POST['form']['state'][0];
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!