[thelist] php/mysql image related links
Joshua Hmielowski
jhmielowski at comcast.net
Thu Sep 25 16:42:47 CDT 2003
cheers mate!
that is exactly what I wanted to accomplish!
On Thursday, September 25, 2003, at 01:29 AM, Boris Mann wrote:
I realized what the hell needed to be done,
so instead of this:
<a href="details.php?id=345">
I added this:
<a href= "details.php?id=<?php echo $row_Recordset1['id']?> ">
and passed the id var.
thanx
>
> On Thursday, September 25, 2003, at 12:21 AM, Joshua Hmielowski wrote:
>
>> What I am trying to accomplish is after i query the database for my
>> image paths,
>> the user can click on the thumbnail and the largeimg path will then
>> be created along
>> with other information to go along with that particular product. ie.
>> id # , name, series, and sizes.
>> I have realized that javascript and php dont like each other and
>> calling a function is no good with the
>> onClick event.
>> what can I do to call this function on this event using php?
>> also how can know which photo was chosen to echo the correct
>> information and how?
>
> This is kind of like asking how to skin a cat -- there are many, many,
> many different ways to potentially do this, but you haven't given very
> much information on what you want to accomplish.
>
> I assume you have a bunch of info with associated image data stored in
> a DB. Example of outputted HTML (generated via template/PHP somehow):
>
> <a href="details.php?id=345"><img src="/path/to/img/from/db" alt="Alt
> from DB" border="0"></a>
>
> So, clicking on the image would submit the url details.php?id=345 -->
> the details.php page would look up product 345 and generate a details
> page.
>
> --
> Boris Mann
> http://www.bmannconsulting.com
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester and
> archives of thelist go to: http://lists.evolt.org Workers of the Web,
> evolt !
More information about the thelist
mailing list