goran Posted February 17, 2013 Share Posted February 17, 2013 I can get everything to display properly, but the image thumb. My page which should display photos looks like this <?php require_once("../../includes/initialize.php"); ?> <?php if (!$session->is_logged_in()) { redirect_to("login.php"); } ?> <?php // Find all the photos $photos = Photograph::find_all(); ?> <?php include_layout_template('admin_header.php'); ?> <h2>Photographs</h2> <?php echo output_message($message); ?> <table class="bordered"> <tr> <th>Image</th> <th>Filename</th> <th>Caption</th> <th>Size</th> <th>Type</th> <th> </th> </tr> <?php foreach($photos as $photo): ?> <tr> <td><img src="public/admin/<?php echo $photo->image_path(); ?>" width="100" /></td> <td><?php echo $photo->filename; ?></td> <td><?php echo $photo->caption; ?></td> <td><?php echo $photo->size_as_text(); ?></td> <td><?php echo $photo->type; ?></td> <td><a href="delete_photo.php?id=<?php echo $photo->id; ?>">Delete</a></td> </tr> <?php endforeach; ?> </table> <br /> <a href="photo_upload.php">Upload a new photograph</a> <?php include_layout_template('admin_footer.php'); ?> The result is The relevant files are attached, sorry for asking of you to debug a distant site, but I have no other option left. photograph.php initialize.php Quote Link to comment https://forums.phpfreaks.com/topic/274592-my-img-thumbs-are-messing-with-me/ Share on other sites More sharing options...
Barand Posted February 17, 2013 Share Posted February 17, 2013 Change it temporarily so instead of the filename you output the image_path in the second column so you can check if it looks right Quote Link to comment https://forums.phpfreaks.com/topic/274592-my-img-thumbs-are-messing-with-me/#findComment-1412932 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.