Fwd: confused about where to load images

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

 



 I still can't make it work.

This is what I have for the link to my images in navbar.php:

foreach($row as $jobType)
{
$row = mysql_fetch_array($result2,MYSQL_ASSOC);
echo "<a href='homehome.php?art=".$row['pix']." border='0'>{$row ['jobType']}</a>";

}

and this is what I have in my homehome.php (inside the grey frame) where I want the images to load:

<?php
$image = $_GET['art'];
?>
<img src="images/<?php print($image)?>" border="5" width="289" height="289">


http://www.squareinch.net/homehome.php
					
if www is my main directory, my file structure is:
www/homehome.php
www/images/...
www/include/header.html
www/include/footer.html
www/include/navbar.php

Thank you



On Oct 5, 2006, at 4:19 AM, Jeremy Jefferson wrote:

foreach($row as $jobType)
{
$row = mysql_fetch_array($result2,MYSQL_ASSOC); /* array variable= $row */ echo "<a href=portfolio2.php?logo=" . $row['pix'] . " border='0'> {$row['jobType']} </a> ";
}
----- Original Message -----
From: Mel
To: Jeremy Jefferson
Sent: Thursday, October 05, 2006 7:00 AM
Subject: Re:  confused about where to load images

Hello Jeremy and thank you so much for your reply.

I am not sure where to add your code!!

My logos are dynamically generated by the code bellow from a MySql database!

foreach($row as $jobType)
{
$row = mysql_fetch_array($result2,MYSQL_ASSOC); /* array variable= $row */ echo "<a href='images/{$row['pix']}' border='0'>{$row['jobType']} </a> ";
}



On Oct 5, 2006, at 3:41 AM, Jeremy Jefferson wrote:

You need to change the logo links to link to portfolio2.php? logo=logonamehere





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux