I have a question regarding checkboxes and PHP/javascript.
I got a checkbox that is checked 2 dropdown list gonna be active, how can i do this...
is this possible to do in HTML, i know you can do it in other programming language but haven't seen it in PHP och Javascript...
When the checkbox is unchecked your not gonna be able to use them, there for no droping down when you click at them. But when it's checked it should work...
And my other question is about PHP and WHERE command.
Here is the code i wish to work but don't know how...
$result = mysql_query("SELECT * FROM karaktarer WHERE id=$id, show=1");
$row = mysql_fetch_array($result);
Well this is the problem... As you see on the code behind WHERE id=$id, show=1
won't work...
show=1 is for data... in a tabel i got some data stored and i wishes to only show the data that got 1 in the field show but when i try it it says something about a error on line 13
(that will be $row = mysql_fetch_array($result); )
it works fine when i doesn't have show=1 in my code but i do not know any other way to do this.
please help!