Jump to content

PHP Program help please.


SpeedCrazy

Recommended Posts

I got it working, remembered some stuff i had read in my textbook and looked it up.

Just closing down but i will post the working code in the morning if your interested.

Share this post


Link to post
Share on other sites

Well here is the current code.

<?php

$conn = mysql_connect("localhost","portfolio","portfolio") or die(mysql_error());
mysql_select_db("portfolio");

$sql = "SELECT album, img, title, comment, url FROM pic";
$result= mysql_query($sql, $conn) or die(mysql_error());

while($row = mysql_fetch_assoc($result)){
$album = $row['album'];	
$title = $row['title'];
$comment = $row['comment'];
$url = $row['url'];
print '<div id="album'.$album.'" class="img"><img src="'.$url.'" alt="'.$title.'" /><br /><h2>'.$title.'</h2><p>'.$comment.'</p> ';
}

 ?>

It works fine.

So now i am trying to build the jquery viewer for the images, i know how to do that(at least im pretty sure i do) but is there any way to prevent an image from loading till it is shown for viewing?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...