Hi
i have a query that i want to display the pulser1 pulser2 pulser3 pulser4 from table but only when the input type for each pulser=2
when i run the query not working as i want it
please check my query
$netw is a variable it can be any value from 1 until 72 it is serial_no
$query4="select account_ref,serial_no,pulser1_name,pulser2_name,pulser3_name,pulser4_name,pulser1_input_type,pulser2_input_type,
pulser3_input_type,pulser4_input_type from net_watch_units
where serial_no=$netw and pulser1_input_type=2 OR pulser2_input_type=2 OR pulser3_input_type=2 OR pulser4_input_type=2";
$result4=mysql_query($query4);
$record4=mysql_fetch_array($result4);
$pulser1=$record4['pulser1_name'];
$pulser2=$record4['pulser2_name'];
$pulser3=$record4['pulser3_name'];
$pulser4=$record4['pulser4_name'];