Jump to content

Recommended Posts

Hello everyone, I am new to the forum and I got a question

 

I am a n00b at PHP but i am learning fast. I am in the process of writing some backend applications for a Photographer. I wrote some code to upload pictures to the database and then to display them to the Administrator. The code tells it to display a certain size.

 

It works great in Firefox but in IE7 it just gives me a sliver of the image and it is really ticking me off.

 

Please if anyone has some suggestions let me know

 

If it would help to include the code let me know

 

On second thought, here it is:

<h1><?php echo $category->getName().' Pictures' ?></h1>
<br/>
<?php use_helper('Object') ?>

<?php echo form_tag('category/upload',array('multipart' => true)) ?>

<?php echo object_input_hidden_tag($category, 'getCategoryId') ?>

<?php echo input_file_tag('image') ?> 

<?php echo submit_tag('Upload Picture') ?>
 
<?php echo link_to('Back', 'category/list?category_id='.$category->getCategoryId()) ?><br/><br/>

<?php foreach ($category->getPictures() as $picture): ?>

<?php echo image_tag('../uploads/' . $picture->getLocation(), 'size=300x?') ?>

<?php echo link_to('Delete Picture', 'category/deletePicture?picture_id='.$picture->getPictureId()) ?><br/><br/>

<?php endforeach; ?>
<br/>
<?php echo link_to('Back to Main', 'site/index') ?>

since this is a browser issues, its probably not a PHP problem (since PHP runs on your server and is then sent to the browser which reassembles the HTML)

 

this is probably a HTML or CSS problem (or possibly javascript?).

 

Instead, right-click and copy your source code (the way it looks in the browser after the page loads on the internet) and paste it into the HTML or CSS forums on this site.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.