If $admission_no[$y] is only supposed to output the value of $y then you can replace "$admission_no[$y]" with just "$y".
Without more of the code and not knowing what it's supposed to do, we can't help much. Could you please provide more of the code. Censor any passwords that may be in the code, obviously. Could you also use the BB Tag when providing PHP code please.[code=php] BB Tag when providing PHP code please.
suppose there is a database.there is a one table call attendance.that table is available 3 field call admission no,date and state(student percent,student absent)
there are 3 arrays 1st one with admission no , 2 nd one with state .the admission no's array explode and get the admission no one by one.
that i wanted to know .that u think the admission no array 10 admission no available.
after that array explode .i want to enter that admission no one by one into database.
there for when i write the query i put $admission_no[$y] inside the value.i wanted to know is this correct.