am sorry the query below is not wat i wanted..
$query="select * from leave where h_code";
its supposed to be..
$query="select * from leave";
another doubt..suppose i ve set a field on auto increment in myphpadmin,how do i manage that field while inserting a row into tat table..?? how can i enter all other fields without mentioning the field set as auto-increment(the auto incremented field is the primary key in my case).
also how abt a field whose default value has been set in myphpadmin..how can i insert values to all other fields except tat field but stil have d default value inserted along with the rest of the values i want to insert.
pls help..