Jump to content

PHP and MYSQL input


rasta876

Recommended Posts

I would like to update the column called Checked in my database with the following code. The problems is the value received by the line

$cbox0=$_POST['cbox0']; example cbox=yes is not being inputted in the database. I think the problem lies with Checked='$cbox' because when  I change it to Checked='yes' the value goes into the database. Could someone let me know what Im doing wrong

 

$cbox0=$_POST['cbox0'];

$inserter = "UPDATE  checkbox SET Checked='$cbox0' WHERE Name='cbox1' ";

mysql_query($inserter);

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/67354-php-and-mysql-input/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.