mysql - How to display same picture on new php page when clicked on the picture? -


This is my code to show pictures from MySQL.

  echo & lt; Table & gt; '; Echo '& lt; Tr & gt; '; Echo '& lt; Td> & Lt; A href = "imagedisplay.php" & gt; & Lt; Img src = "galleryshow.php? Id = '. $ Line [' id '].' 'Width =" 300 "height =" 250 "/> gt; & lt; / td & gt;'; write; & lt; ; Li & gt; Species: '. $ Line [' Species]]. '& Lt; / li & gt; & lt; li & gt; Age:'. $ Line ['age']. '& Lt; / Li & gt; & lt; li & gt; Gender: '$ line [' gender '].' & Lt; / li & gt; & lt; li & gt; Date: '$ line [' date '].' & Lt; / li & gt; & lt; li & gt; Time: & lt; / li & gt; & lt; li & gt; Location: '. $ Line [' location '].' & Lt; / li & gt; & lt; li & gt; Note: '. $ Row [' comment '].' & Lt; / li & gt; & lt; / td & gt; '; echo & lt; / tr & gt;'; echo '& lt; / table & gt;';  
< P> I want to display the same image on imagedisplay.php .

This is not a lot of answers, because this is not a question:

You have to give your $ line ['id'] as a parameter imagedisplay.php Using something like: GET will look something like this:

echo & lt; td & gt; & lt; a href = "imagedisplay.php? Rowid = '. $ Row ['id'] "& Gt; & lt; img src =" galleryshow.php? " Id = '. $ Line ['id']. '' Width = "300" height = "250" /> gt; & Lt; / A & gt; & Lt; / Td> ';

You have to select that variable in your imagedisplay.php code and then use it as you did here.


Comments

Popular posts from this blog

Active Directory Authenticated Proxy Server with Squid or CNTLM -

java - Can't add JTree to JPanel of a JInternalFrame -

java - @PluginTarget(Node.class) not registering as neo4j plugin -