Jump to content

PHP Keys & Values > MySQL Columns


htorbov

Recommended Posts

This:

echo "<pre>";
print_r($torrent->content());
echo "</pre>";

 

Returns:

Array
(
    [Eureka.S05E01.HDTV.XviD-ASAP\Eureka.S05E01.HDTV.XviD-ASAP.avi] => 367011826
    [Eureka.S05E01.HDTV.XviD-ASAP\eureka.s05e01.hdtv.xvid-asap.nfo] => 4798
    [Eureka.S05E01.HDTV.XviD-ASAP\Sample\eureka.s05e01.hdtv.xvid-asap.sample.avi] => 7883092
)

 

Needs to be inserted to MySQL like:

i1cjdj.png

 

In other words, the array $torrent->content() needs to be inserted to MySQL as new lines at columns "filename" and "size".

 

Please help me..

 

Link to comment
https://forums.phpfreaks.com/topic/256933-php-keys-values-mysql-columns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.