Re: mysql, php, mp3 - a variable problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



moin,

sorry, my php-knowledge is not the best.
what do you mean with formfieldvalues?
i think $info->value is used to get the id3-tag info from the class, 
right? this worked for me in a more simple way without the recursive 
scan:

<?
  include("mphp3.php");
  $info = New mphp3(2);

  mysql_connect("192.168.100.12","user","password");
  mysql_select_db("music");

  $info->load("test.mp3");

  $abfrage ="insert into mp3 (
                              file,
                              artist,
                              title,
                              album)
           values (
                     '$info->filename',
                     '$info->v2_artist',
                     '$info->v2_title',
                     '$info->v2_album');";
  mysql_query($abfrage);
?>

> Hi,
> 
> > Where do you get $info2 from?
> > I only see $info in this function.
> 
> I guess that the $info->values are formfieldvalues.
> $info->[db-field] is normaly used within a whileloop for
> outputing a select-statement.
> 
> In the case of formfieldvalues you can use $<formfieldname>.
> 
> > .: Allowee
> >
> > > function scan_dir($dir)
> ...
> > >             $query ="insert into mp3 (
> > >                               file,
> > >                               path,
> > >                               artist,
> > >                               title,
> > >                               album)
> > >             values (
> > >                      '$info2->filename',
> > >                      '$dir',
> > >                      '$info2->v2_artist',
> > >                      '$info2->v2_title',
> > >                      '$info2->v2_album');";
> > >
> > >             mysql_query($query);
> ...
> 
> Regards,
> Ruprecht
> 
> ----------------------------------------------------------
> Ruprecht Helms IT-Service und Softwareentwicklung
> 
> Tel./Fax  +49[0]7621 16 99 16
> email:      info@rheyn.de
> Homep.    http://www.rheyn.de
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux