SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    sweden
    Posts
    646
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Why isn't this working with my metadata-string?

    I have a page where I get the length of a mp3 file echoed to my page and it works fine.
    I also want the length of the track to be inserted into my table, but the field is just empty.
    How can I make this info into a string that I can insert into my table?

    I guess there is something as simple as abc, but I just don't get it...

    PHP Code:
    $a = $m->get_metadata();
    ?>
    Track length: <?php echo $a['Length mm:ss']; ?> minutes
    <?php
    $sendlength
    =$a?>

    The one I call $sendlength is the empty one. The rest is working fine.
    If I output that one it just say Array

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,147
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    You'll want to use $sendlength = $a['Length mm:ss']; like you did for your echo statement.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •