0

Dear respected senior php web developer i m new to php webdeveloping and hoping for a good coder one day inshaALLAH
SIR i have problem with my image hosting script
http://pashtoaudio.com/tahir/upload.php is for uploading images
and http://pashtoaudio.com/tahir/photos.php is for displaying all uploaded images how ever i want to show there small thumbs i put everything correct in <img scr=""> tag but still my images thumbs not loading pelase help me thanks!
i m giving my exact code for showing images thumbs here is the code.

<html>
    <head>
        <title>PHP Photo Hosting Script</title>
        <link rel="stylesheet" type="text/css" href="main.css" />
    </head>
    <body>

<?php
include "conn.php";
echo "<center>";
include "head_menu.php";
echo "</center><br>";

?>
<div class="images_boundry">
<?php $result = mysql_query("SELECT * FROM imgs_name ");
while($images = mysql_fetch_array($result))
{
    $show_img = $images['img_name'];
    echo "<div class='images_thumb'><a href='http://pashtoaudio.com/tahir_upload/".$show_img."'><img scr='tahir_upload/".$show_img."'></img></a></div>";
}

?>
<div style="clear:both"></div>
</div>
    </body>
</html>
4
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by tahirkhanafridi
1

Urgh. Tidy up your deprecated and dodgy HTML before you start messing with php.

<center>

No need for this - use CSS

<div style="clear:both"></div>

Although not wrong, should be dealt with in CSS. However, why is it empty? Markup like this should be avoided where possible.

Simply has already noted the mistake with the <img /> tag.

Also you have no doctype declared, e.g. for HTML5:

<!DOCTYPE html>

A missing DTD may trigger quirksmode in some browsers.

0

Thanks every body for your good replies i like that fast resolution for my problem. i took very big mistakes in little tags i learned a lot and get that if i don't think about small things i can't be grow up in programming field. once more time thanks for all supporters see you next time with new issues inshALLAH

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.