maximo1970
ISP
I'll try and explain the best I can on this one. I have a MySQL table (tbl_disk_space) that I want to populate :-
Device_Name Drive Size Used Free
server1 C
server1 D
server2 C 10 1 9
server2 D 5 4 1
My data source is split into the $drive $size $used $free $hostname
I want to select all of the data in the columns Device_Name and Drive from tbl_disk_space so that I can then check if the Device_Name matches $hostname and Drive matches $drive. I can then either insert or update the data in tbl_disk_space. I now that I should be able to do something like this using fetchall_arrayref but just can't get my head around it.
Any pointers would be great.
Thanks.
Device_Name Drive Size Used Free
server1 C
server1 D
server2 C 10 1 9
server2 D 5 4 1
My data source is split into the $drive $size $used $free $hostname
I want to select all of the data in the columns Device_Name and Drive from tbl_disk_space so that I can then check if the Device_Name matches $hostname and Drive matches $drive. I can then either insert or update the data in tbl_disk_space. I now that I should be able to do something like this using fetchall_arrayref but just can't get my head around it.
Any pointers would be great.
Thanks.