Checkbox in datagrid
Posted: Thu Oct 29, 2009 9:15 am
Hi, i m trying to display a field from a table as checkbox in a datagrid. I have a field named Active and has two possible values active/inactive, i tried something like the following but i get : nativecode=1064 ** You have an error in your SQL syntax. In addition i think that the major problem is that i cant pass and retrieve parameters to write a handler for them, so any help would be appreciated.
In datagrid would appear a checkbox but actually it would be a link to another page with some script and then back to original.
Thanks in advance!
Code: Select all
$sql.="CONCAT('<input type=checkbox name='Active' on_click='code_template.php?param1=inactive¶m2=active/>Active</a>)
Thanks in advance!