SpeedCrazy Posted May 27, 2011 Posted May 27, 2011 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 More sharing options...
flareback Posted May 27, 2011 Posted May 27, 2011 I just got off work. I'll be up till about 6am then sleep till about 2pm. After that I'll be around a bit. Share this post Link to post Share on other sites More sharing options...
SpeedCrazy Posted May 27, 2011 Posted May 27, 2011 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 More sharing options...
SpeedCrazy Posted May 27, 2011 Posted May 27, 2011 Starting a new thread for my jquery problems. Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now