<?php $msg=""; $image1=""; $image1_err=""; //if upload button is pressed if(isset($_POST['upload'])){ $target="images/".basename($_FILES['image']['name']); $db=mysqli_connect("localhost","root","","categories"); $image=$_FILES['image']['name']; $text=$_POST['text']; if(isset($_POST['electro'])){ $sql="INSERT INTO electronic(image,text) VALUES ('$image','$text')"; mysqli_query($db,$sql); } //move image to a file if(move_uploaded_file($_FILES['image']['tmp_name'],$target)){ $msg="Image uploaded successfully"; }else{ $msg="There was a problem uploading image"; } } ?> <!DOCTYPE html> <html> <head> <title>Image Upload</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id="content"> <?php $db=mysqli_connect("localhost","root","","categories"); $sql="SELECT * FROM electronic"; $result=mysqli_query($db,$sql); while($row =mysqli_fetch_array($result)){ echo "<div id='img_div'>"; echo "<img src='images/".$row['image']."'>"; echo "<p>" .$row['text']."</p>"; echo "</div>"; } ?>

Member Avatar
Member Avatar
+0 forum 4

Hello, I can't display images from database. I have folder called "images" next to index.php where I keep images. I suppose I have wrongly defined folder path with images or sth else. <?php $connection = new mysqli("localhost", "root", "", "crud"); $sql = "SELECT * FROM test"; $res = $connection->query($sql); if(@$res->num_rows > 0) { while($row = $res->fetch_assoc()) { ?> <img src="<?php "C:/xampp/htdocs/img_mysql/images/".$row['image'] ?>" style="width:170px;height:120px" /> <?php } } ?> I put picture with how look my website when I try display images. ![011.jpg](/attachments/large/4/cb5cff474c596085beba1a63f9b6c6b6.jpg "align-center")

Member Avatar
Member Avatar
+0 forum 3

I need to insert an imagen into a SQL Server Database and i need to do it using jsp, but i don't know how to do it. Someone can teach me the best way to do that?

Member Avatar
Member Avatar
+0 forum 1

If you viste www.topelven.com you will find a perfect website devloped but till now i can't understand what they code with css can you give me exemple

Member Avatar
Member Avatar
+0 forum 2

Hi, I am a legacay (cobol) developer and wants to learn how to build websites. For this I decided to do a little project for myself. The site would be a places/travel tracker kind. It would show a certain map (ex, London, Taiwan, Greenland). Then you can click on a city on the map which will show pictures/videos/comments of you in that city. Map changes color for the city you have visited or maybe a pin. I have search the web and mostly there are world tracker. I would want a country based one. So my questions are: 1.) What …

Member Avatar
Member Avatar
+1 forum 4

I'm working with VB.net 2010. I need an windows form where i can select scanner's connected to my pc and then scan image and save it by a save dialogbox.... Waiting for help.....

Member Avatar
Member Avatar
+0 forum 7

Let's say you want to send a short private message to your friend, but don't want grandma to snoop around and find it. One way is to use the Python Image Library (PIL) and hide the message in a picture file's pixels. Just looking at the picture you will barely detect any difference between the before and after picture. All your friend needs is the decode_image portion of this simple code to get the message back.

Member Avatar
Member Avatar
+5 forum 11

Please share useful tips or technique for image optimizations.

Member Avatar
Member Avatar
+0 forum 12

i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all my pages, any help would mean a lot, thanks!!! <html> <head> <meta charset="utf-8"> <title>PYB Register Bike</title> <link href="bootstrap-3.3.7/dist/css/bootstrap-theme.min.css" rel="stylesheet"> <!--styling css link --> <link href="bootstrap-3.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- styling css link --> <link href="font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"> <!-- styling css link --> <link rel="stylesheet" href="../ProtectYourBike.css"> <!-- CSS Reference --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script src="http://malsup.github.com/jquery.form.js"></script> …

Member Avatar
Member Avatar
+0 forum 1

Hi! I would like to know how to make a photo clickable to redirect people from my blog to my Facebook page. I'm not a computer science student nor do I have a heavy duty level of expertise in HTML, but I can follow simple instructions. I'd like to make the photo so that when people click on it, they are sent to my FB page. I tried making one on Easy Hyperlinks but they asked for information I did not have. This is what they wanted: 1- The target URL (I could provide that, my FB page URL) 2- …

Member Avatar
Member Avatar
+0 forum 13

Cop shows that include a 5 minute foot chase. This is usually the result of the cops shouting out a suspect's name from half a block away instead of waiting until they are within arm's reach. Inevitably the suspect runs into the path of a car or truck and the chase ends up being pointless anyway. Cop shows where six cops burst in the front door of an apartment/house but neglect to post anyone at the fire escape/back door which is the only other exit. This leads to another pointless (and prolonged) foot chase. Shows where a victim is being …

Member Avatar
Member Avatar
+7 forum 210

Here's a question for you: I often use remote desktop to connect to my office pc. Often times, I'm writing a document on the office pc and I need to include a screenshot of an application etc. Over RDP, how do I make the office pc take a screen shot and have it pasteable? When I attempt to take a screen shot over RDP, it takes a screen shot of my RDP session, (ie it's my local pc taking the screen shot, not the office pc), and the image is not pasteable by the office pc into the document. Anyone …

Member Avatar
Member Avatar
+0 forum 13

Hey, I'm new to the forums but fairly experienced when it comes to computers. I've got a Dell Dimension 8400 and a 2001FP monitor. When i boot the computer up, the video card's fan is spinning and the computer seems to power on fine... except for the fact that there is no image on the monitor. The monitor itself acts as though it is connected to the computer while the computer is off. The light on the monitor normally remains yellow while the DVI cable is connected to the computer but the monitor is not powered on; because the yellow …

Member Avatar
Member Avatar
+0 forum 68

Hi guys... I want some help of how to call images from a folder.... Its like..v have a folder called images and it has many images in it.....but i need only 6 images to display in a php webpage...when the webpage is reloaded, it displays another images...its like its displaying random images.....But in one page, i would like to display only 6 images....So, when the reload or visit again, the images or randomised from the images folder.....can any one know how can it be done.... I m not sure abt the codes... Thanks Tryphy

Member Avatar
Member Avatar
+0 forum 22

You can put an image and text on a Tkinter button widget. This small code shows you how. The GIF image file you want to use for the button should be in the working directory, or you have to give it the full path. Incorporate the Python Image Library (PIL) for other image formats.

Member Avatar
Member Avatar
+1 forum 3

How do i get the name of the image without the extension at the end ex. (.jpg) i got this code **functions.php** function get_image($id="1") { ?> <img class="img-responsive img-portfolio img-hover" name="picture" src="images/gallery/<?= urldecode(base64_decode($id)); ?>" alt=""> <?php } **pictures.php** <center> <form action="" method="POST"> <div class="col-lg-12"> <?php get_image($imageID); // $imageID is read from database ?> </div> </form> </center>

Member Avatar
Member Avatar
+0 forum 2

guys! Im new in PHP and im developing a small website wherein there's many images on the page and when i click one of the image it must be shown into another page with full details.. but the problem when i click one of the image it shown's nothing! I tried to use $_SESSION[]; but I can't get the logic how to properly use it.. thnx.. please help..

Member Avatar
Member Avatar
+0 forum 11

This code shows how to obtain and display a GIF image from an internet website using the Tkinter GUI toolkit that comes with the Python installation.

Member Avatar
Member Avatar
+4 forum 5

My goal is to make manipulations to an image by adding shapes on top of the image using JavaScript. For example, adding rectangular shapes to an image of a refregirator, as shown below: ![Sample_Of_What_Result_Needs_to_Look_Like.png](/attachments/small/3/9dd037e6ad4d9a1edf955eb0e39abf2a.png "align-left") <!DOCTYPE html> <html> <head> <style> #avaliableSpace { border-radius: 25px; background: #00B050; padding: 20px; width: 125px; height: 75px; } </style> </head> <body> <img src="http://imageshack.com/refrigerator.png" alt="Kitchen Refrigerator" style="width:1600px;height:1200px;"> <p id="avaliableSpace"> </p> </body> </html> I was able to get image to show up using a url link, but the rectangular shape is not overlaying on top of the image, rather appears below the image. I don't know what …

Member Avatar
Member Avatar
+0 forum 4

Title pretty much says it all. I want a background image to have a linear gradient fade to transparent. I've faded the image out to a color by overlaying a gradient on top of it, which unfortunately would only help me if my site background is a solid color. (see codepend example) I tried to use an image in place of a color value :p No such luck. Anyone have any ideas? https://codepen.io/anon/pen/wzArAN

Member Avatar
Member Avatar
+0 forum 2

A short example of Pygame showing an image with a known internet url.

Member Avatar
Member Avatar
+0 forum 1

hi, how can I add an image in title of the page and in the adress bar? please help ty

Member Avatar
Member Avatar
+0 forum 10

Will work on latest:Chrome Safari Firefox Opera and all versions of IE. *(client notifications are for demonstration purposes only, and subject to designer decisions and modifications ) Can be used for size and mime-type restrictions. When mime-type is not an issue, accepting any kind of image format can be done usnig "image" as a function argument. Multiple mime-types allowed should be separated with the following syntax: "gif|jpeg|png" etc. [see the demo]. Numeric value signifies the maximum size in kilobytes. Benefits: your client doesn't have to wait until the image uploads on the server just to see that his file is …

Member Avatar
Member Avatar
+2 forum 4

I'm trying to display an image on an HTML page using a PHP script in the image/src tag, but the image is broken. When I hard-code the output of getimage.php into the HTML it shows up just fine so I know the base64 encoding is correct. The page that shows the image needs to be HTML. PHP: <?php header("Content-type: image/png"); $data = file_get_contents('arbitrary.png'); $base64 = 'data:image/png;base64,'.base64_encode($data); echo $base64; ?> HTML: <html> <body> <img src="getimage.php" /> </body> </html> Any ideas? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 1

i need a code for php changing image in every 2 hours at a time ...

Member Avatar
Member Avatar
+0 forum 5

The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are remarks to explain what is going on.

Member Avatar
Member Avatar
+0 forum 6

Hi, My application is in VS2010,Silverlight and coded in C#.Net. My requirement is i want to upload Image in my Imagebox control.As there is no PictureBox control in Silverlight im using ImageBox. I have a Imagebox,below that a Browse button. When the User clicks on Browse button,Dialogbox should open and when the USer selects a Image it should be loaded to Image box.. Example for Picturebox is available on the forum but i want it for Imagebox. Below is my code. [CODE] OpenFileDialog imageDialog = new OpenFileDialog(); //Filter default filetype to be allowed for selection imageDialog.Filter = "Pictures (*.jpg)|*.jpg"; imageDialog.FilterIndex …

Member Avatar
Member Avatar
+0 forum 7

Hi all.. I am a newbie in web programming and I have question how I can put my slice images html as background in html? I already slice it with photoshop and save it as html, the slice image is showing but they are in table format.. How I can set this as background? <table id="Table_01" width="1281" height="721" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img src="images/Info_01.jpg" width="374" height="1" alt=""></td> <td colspan="9" rowspan="2"> <img src="images/Info_02.jpg" width="533" height="240" alt=""></td> <td> <img src="images/Info_03.jpg" width="373" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="1" alt=""></td> </tr> <tr> <td rowspan="3"> <img src="images/Info_04.jpg" width="374" height="342" alt=""></td> <td rowspan="3"> <img …

Member Avatar
Member Avatar
+0 forum 8

Hi All, I have an excel file containg chart.I am able to read the chart from excel file using POI XSSF. But I am not able to save the XSSFChart as an image.I want the chart to be stored in my harddrive as an image(.jpg or .png).Please find my code fragment below. FileInputStream file = new FileInputStream(new File("C:\\chart.xlsx")); XSSFWorkbook workbook = new XSSFWorkbook (file); XSSFSheet sheet = workbook.getSheetAt(0); XSSFDrawing drawing = sheet.createDrawingPatriarch(); List<XSSFChart> listChart=drawing.getCharts(); System.out.println(listChart.size()); Please help.

Member Avatar
Member Avatar
+0 forum 8

I have this Image code and I want to resize it using CSS.. <div id="TA_selfserveprop634" class="TA_selfserveprop"><ul id="FkGjsTFbWr" class="TA_links aICFqBWnArX"><li id="v65BTuNt" class="Id2gL5m3F1"><a target="_blank" href="https://www.tripadvisor.com/"><img src="https://www.tripadvisor.com/img/cdsi/img2/branding/150_logo-11900-2.png" alt="TripAdvisor"/></a></li></ul></div><script src="https://www.jscache.com/wejs?wtype=selfserveprop&amp;uniq=634&amp;locationId=307103&amp;lang=en_US&amp;rating=true&amp;nreviews=5&amp;writereviewlink=true&amp;popIdx=true&amp;iswide=false&amp;border=true&amp;display_version=2"></script> </div> have tested on CSS however it does not have any effect .TA_selfserveprop{ width:10%; height:10%; } Please can any one points it to me where i am getting wrong ? However when refresh my page it does not have any effect to the page

Member Avatar
Member Avatar
+0 forum 1

The End.