Date: 10/15/00
- Next message: likun18 <email protected>: "[PHP-DB] MS-SQL problem"
- Previous message: Jeremy: "[PHP-DB] File Path into variables"
- In reply to: Jeremy: "[PHP-DB] File Path into variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
explode() or split() on / and store those in an array, you now have your variables...
then to get data out of your database, put the vars in an array and implode() them or do it straight out
$full = "/" . $letter . "/" . $artist . "/" . $song;
/cody caughlan
Jeremy wrote:
> I am wondering how to turn a file path into variables that can be stored in a database. I need to get variable for multiple files. An example file is
> /l/led_zeppelin/stairway_to_heaven.txt
>
> I want to make
> /$letter/$artist/$song
> and put the song txt or html file into a Blob field.
>
> My database would look like this :
>
> id,letter,artist,song,lyrics
>
> Does anybody know how to do this? I know how to open, copy, and rename files, but am unclear on how to turn file paths into variables, or do mass additions
>
> Any help would be appreciated.
> Thanks,
> Jeremy Ferwerda
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: likun18 <email protected>: "[PHP-DB] MS-SQL problem"
- Previous message: Jeremy: "[PHP-DB] File Path into variables"
- In reply to: Jeremy: "[PHP-DB] File Path into variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

