Image linking help in PHP
Image linking help in PHP
am 04.07.2010 17:40:57 von Nagendra Prasad
--00163628380aa10f4f048a91a697
Content-Type: text/plain; charset=ISO-8859-1
Hi All,
I have a database of MP3 and I want to link the download tab with an image
so that when user clicks on the image the download should start. I have full
path of MP3 in my database, I just want to link the same image with every
song. I don't want to upload the image to mysql database. I hope I am clear
with my issue. Please do let me know if I am not clear.
Best,
Guru.
--00163628380aa10f4f048a91a697--
Re: [PHP-DB] Image linking help in PHP
am 04.07.2010 19:20:43 von Nagendra Prasad
--00163628380a6acdd7048a930b03
Content-Type: text/plain; charset=ISO-8859-1
Thanks Jason, However will this work if each time let say a variable called
$mp_url will change. I hope you know what I meant. The MP3 link will not be
constant, but the image file link could be constant.
I already linked the MP3 link with its own name (Text ) and its working but
now I want to replace the MP3 name (Text) with an image because the song
name will be the heading of the page so no need to echo out twice right.
Best,
Guru.
--00163628380a6acdd7048a930b03--
Re: [PHP-DB] Image linking help in PHP
am 04.07.2010 19:20:43 von Nagendra Prasad
--00163628380a6acdd7048a930b03
Content-Type: text/plain; charset=ISO-8859-1
Thanks Jason, However will this work if each time let say a variable called
$mp_url will change. I hope you know what I meant. The MP3 link will not be
constant, but the image file link could be constant.
I already linked the MP3 link with its own name (Text ) and its working but
now I want to replace the MP3 name (Text) with an image because the song
name will be the heading of the page so no need to echo out twice right.
Best,
Guru.
--00163628380a6acdd7048a930b03--
Re: [PHP-DB] Image linking help in PHP
am 04.07.2010 20:26:21 von Vinay Kannan
--0015175cf7b6f71703048a93f438
Content-Type: text/plain; charset=ISO-8859-1
So basically you want to be able to associate an image with an Mp3, and the
path to the mp3 is stored in the DB, right ?
If above is the case, why dont you upload the image to an image folder, and
save the path to the image in the DB too along with mp3 path details, I
think this should work !
Thanks,
Vinay
On Sun, Jul 4, 2010 at 10:50 PM, nagendra prasad
wrote:
> Thanks Jason, However will this work if each time let say a variable called
> $mp_url will change. I hope you know what I meant. The MP3 link will not be
> constant, but the image file link could be constant.
>
> I already linked the MP3 link with its own name (Text ) and its working but
> now I want to replace the MP3 name (Text) with an image because the song
> name will be the heading of the page so no need to echo out twice right.
>
> Best,
> Guru.
>
--0015175cf7b6f71703048a93f438--
Re: [PHP-DB] Image linking help in PHP
am 04.07.2010 20:26:21 von Vinay Kannan
--0015175cf7b6f71703048a93f438
Content-Type: text/plain; charset=ISO-8859-1
So basically you want to be able to associate an image with an Mp3, and the
path to the mp3 is stored in the DB, right ?
If above is the case, why dont you upload the image to an image folder, and
save the path to the image in the DB too along with mp3 path details, I
think this should work !
Thanks,
Vinay
On Sun, Jul 4, 2010 at 10:50 PM, nagendra prasad
wrote:
> Thanks Jason, However will this work if each time let say a variable called
> $mp_url will change. I hope you know what I meant. The MP3 link will not be
> constant, but the image file link could be constant.
>
> I already linked the MP3 link with its own name (Text ) and its working but
> now I want to replace the MP3 name (Text) with an image because the song
> name will be the heading of the page so no need to echo out twice right.
>
> Best,
> Guru.
>
--0015175cf7b6f71703048a93f438--
Re: Image linking help in PHP
am 04.07.2010 22:38:44 von Karl DeSaulniers
+1
This is the way to do it IMO. Has worked for me.
Karl
On Jul 4, 2010, at 1:26 PM, Vinay Kannan wrote:
> So basically you want to be able to associate an image with an Mp3,
> and the
> path to the mp3 is stored in the DB, right ?
> If above is the case, why dont you upload the image to an image
> folder, and
> save the path to the image in the DB too along with mp3 path
> details, I
> think this should work !
>
> Thanks,
> Vinay
>
> On Sun, Jul 4, 2010 at 10:50 PM, nagendra prasad
> wrote:
>
>> Thanks Jason, However will this work if each time let say a
>> variable called
>> $mp_url will change. I hope you know what I meant. The MP3 link
>> will not be
>> constant, but the image file link could be constant.
>>
>> I already linked the MP3 link with its own name (Text ) and its
>> working but
>> now I want to replace the MP3 name (Text) with an image because
>> the song
>> name will be the heading of the page so no need to echo out twice
>> right.
>>
>> Best,
>> Guru.
>>
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Image linking help in PHP
am 04.07.2010 22:38:44 von Karl DeSaulniers
+1
This is the way to do it IMO. Has worked for me.
Karl
On Jul 4, 2010, at 1:26 PM, Vinay Kannan wrote:
> So basically you want to be able to associate an image with an Mp3,
> and the
> path to the mp3 is stored in the DB, right ?
> If above is the case, why dont you upload the image to an image
> folder, and
> save the path to the image in the DB too along with mp3 path
> details, I
> think this should work !
>
> Thanks,
> Vinay
>
> On Sun, Jul 4, 2010 at 10:50 PM, nagendra prasad
> wrote:
>
>> Thanks Jason, However will this work if each time let say a
>> variable called
>> $mp_url will change. I hope you know what I meant. The MP3 link
>> will not be
>> constant, but the image file link could be constant.
>>
>> I already linked the MP3 link with its own name (Text ) and its
>> working but
>> now I want to replace the MP3 name (Text) with an image because
>> the song
>> name will be the heading of the page so no need to echo out twice
>> right.
>>
>> Best,
>> Guru.
>>
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php