Jump to content

Need some pointers


bigmikey00

Recommended Posts

i am working on making this  forum script i wanna allows users to upload a photo album and pictures i have everything in place including all the database info  the problem is i need a page that is considered a static page lets say i use the following code

in images.php

<a href="view_images.php?=<?php echo $images_id; ?>"><?php echo $images_name; ?></a>

this code should take me to that address but the layout is designed in view_images

this is the code located in the view_albums page to load the picture from the link

<IMG SRC="/images/<?php echo $images_id; ?>/<?php echo $images_name; ?>">

now im not getting the image it shows just the first one located in the database now i can change the img src line to any id number and name and it will work for that image only how can i make this work the right way

please respond ASAP for this is for a client of mine

Thanks in advance,

 

Mike

Link to comment
Share on other sites

here is my view_images.php

please tell me what i am missing my images.php file is almost the same it pulls the list of images and displays them correctly in the right order but this one will not open the game. im stuck any help would be great

 

$username="username";
$password="password";
$database="db_name";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$query="SELECT * FROM images ";

$result=mysql_query($query);

       $image_id=mysql_result($result,$i,"id");
$image_name=mysql_result($result,$i,"name");
$image_desc=mysql_result($result,$i,"description");


mysql_close();

Link to comment
Share on other sites

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.