$user_photos = mysql_fetch_array( $data );
print "<table width=800>";
$i=1;
$rows = mysql_fetch_array($user_photos);
while($user_photos / 3)
{
print "<tr>";
$j=0;
while($user_photos = mysql_fetch_array( $data ) && $rows % == 0)
{
$imagePath = "photos/$username/".$user_photos['imageThumbName'];
$imagePath2 = "http://www.photospooler.com/photos/$username/".$user_photos['imageThumbName'];
$imageName = $user_photos['imageName'];
$imageURL = "<a href='www.photospooler.com'><img src='$imagePath2' alt='www.photocooler.com'></a>";
print "<td align='center' valign='top' width=500><br>";
print "<span class='style6'><a href='rename.php?imageName=$imageName'>rename</a> | </span>";
print "<span class='style6'><a href='addToAlbum.php?imageName=$imageName'>add to public album</a> | </span>";
print "<span class='style6'><a href='addToAlbum.php?imageName=$imageName'>delete</a></span>";
print "<br><br><img src='$imagePath'><br><br>";
print "<span class='style6'>email, IM, link to share with friends</span><br>";
print "<input type='text' name='image$i' value='http://www.photospooler.com/photos/$username/$imageName' readonly='readonly'><br><br>";
print "<span class='style6'>HTML code, for myspace or facebook</span>";
print "<input type='text' name='image$i' value='$imageURL'><br><br>";
print "<span class='style6'>BB code, forums</span>";
print "<input type='text' name='image$i' value='[IMG]http://photospooler.com/photos/$username/$imageName'>";
print "</td>";
$i=$i+1;
}
$j=$j+1;
}
print "</table>";
Here is my code. I was in the process of researching and trying to figure this out. Hopefully you have some pointers. Also, how do I go about getting the value inside the first textfield. The value is in HTML and for somereason it posts the image instead of the text inside the text box. Thanks again.
Brendan