I have some select
result from database(like on image).
I need do foreach
cycle for id
It's must looks like this
foreach () {
if ($status==1) {
if ($process_id ~~ @some_array) {
#do something
}
}
How do for each cycle? As I understand I need to get a result from a base in hash form $ref = $sth->fetchrow_hashref
, but I never worked with him, and my attempts were unsuccessful. Help me please.
Is
fetchrow_array
what you need?