Re: mysql, php, mp3 - a variable problem

From: Date: Sat, 07 Jun 2003 09:31:45 +0000
Subject: Re: mysql, php, mp3 - a variable problem
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-28402@lists.php.net to get a copy of this message
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

« previous php.db (#28402) next »