Programming :: Show Images From A Database Result?

Jun 17, 2010

I was wondering if I can show an image on our php site if we store the path to it. For example if we get the result form my sql as:

images/example1.png and the handle the result as common html.

< img src="databaseresult" width="173" height="188" border="1" / >

is this possible? do you think theres a better way to do it?

we need to store the images locally we cant use a blob space on the table.

View 2 Replies


ADVERTISEMENT

General :: Why Does Du -sl Show Different Sizes For Source And Result Of Cp -rl?

Jul 14, 2011

I have used cp -rl to copy a folder. When measuring the size of the source and of the result of the copy du -sl returns slightly different sizes, even though diff confirms that their content are identical.Both folders reside on the same hard drive, no modifications to any of them have been done between the copy and the measure. I found nothing in the documentation of du and cp which could explain the difference.

View 1 Replies View Related

Ubuntu :: Evolution Won't Show Images>

Feb 2, 2010

Evolution won't show any images no matter what format. This really bugs me as at least 95% of my mail comes with loads of pictures. I'm running Ubuntu 9.10/Karmic Koala, anyone else have this problem with Karmic and solved it?

View 4 Replies View Related

Ubuntu :: Evolution Doesn't Show Images?

Oct 1, 2010

I'm facing a boring problem and I cant understand why it is happening. Im running Evolution 2.28.3 on Ubuntu 10.04, and all the messages are not showing their images. I already did the following confs:

1) Change proxy to connect "Directly to the internet"
2)In Preferences, "Load images from contacts".
3)I tried the option "Load Images" ou CTRL+I.

View 1 Replies View Related

OpenSUSE :: Nautilus Doesnt Show Preview Images?

Jul 20, 2010

When opening nautilus there are no image previews.Only if i watch the image with eye of gnome and than klick thereload button, the pictures are shown. is this a bug or feature?how can i switch this back to the default where image previews areshown when i open a folder without viewing it with eye of gnome?

View 5 Replies View Related

Ubuntu :: Create A Slide Show Of Background Images?

Oct 19, 2010

I would like to to create a slide show of background images, is there an easy way to do this? I would like the image to change roughly every 12hrs to 1 day

View 5 Replies View Related

Ubuntu :: Nautilus Doesn't Show Previews Of Images On Network Drive?

Dec 19, 2010

I have this little problem: when I open a folder with images from my network drive, I can't see the previews of the files.If the folder is on the local drive no issues, but with the remote one... no luck.I checked around for a solution, without results.. do you know if there is a solution for this little issue

View 4 Replies View Related

Debian Programming :: Generate SQL Result Into XML

Dec 2, 2014

How do I generate sql result into xml ? Tried this way (shown below), but it generates all data into single column.

Code: Select allgenerate_xml()
{
        f1=_tmp1
        f2=_tmp2
        cat $SQL_QUERY_OUT |sed -e 's/^"//g;s/"$//g;s/","/|/g'|tr '|' ' ' > $f1
        [ -e $SQL_QUERY_OUT ] && rm $SQL_QUERY_OUT

[code]....

View 2 Replies View Related

Programming :: Get Different Result Of Matrix Op On Hw Rtw Book?

Jul 31, 2011

Dear Linux/c++/g++ programmers: the run result on my system, ubuntuLinux10.04(kernel2.6.35-25), gcc4.5.2 is not what book predict

source code
http://examples.oreilly.com/9780596007614/
11-28
11-29
11-24
#include "matrix.hpp"

[Code]...

View 13 Replies View Related

Programming :: Cut The String In The Result Generated By AWK?

Aug 5, 2010

I wanted to get the ORACLE_HOME of the listener's running on the server.I have been using the following to get the reult. /opt/oracle/admin/PHYPE/bdump> ps -ef|grep /bin/tnslsnr|grep -v grep|awk '{print $9}'

Result is as follows

/opt/oracle/product/10.2/bin/tnslsnr
/opt/oracle/product/9.2.0/bin/tnslsnr
/opt/oracle/product/10.2/bin/tnslsnr
/opt/oracle/product/10.2/bin/tnslsnr
/opt/oracle/product/9.2.0/bin/tnslsnr
/opt/oracle/product/10.2/bin/tnslsnr

Now i wanted to cut the /bin/tnslsnr part and the remaining should write to the file.

View 4 Replies View Related

Programming :: Setting The Final $result

May 18, 2010

I have a variable (call it $valAS) that gets calculated . Also, i have a files Bassu3. if $valAS= 45368 (2nd part of 2nd line in Bassu3) after calculation, then $result=45368, but if $valAS != 45368 then $result= $valAS

Bassu3:

Quote:

name.srv
name 45368 (value always changing)
name 99999
name 88888

how can i do this in Bash?

View 14 Replies View Related

Programming :: Specific Result Of Awk Script

Jan 24, 2010

I'm using the following awk command to find out the users home directory from /etc/passwd file.#grep jeesun /etc/passwd |awk 'BEGIN {FS=":"};{print $6}'But problem is when there are two name like "jeesun" and "jeesunadm" exist the script shows both result not specific one.

View 3 Replies View Related

Programming :: PHP / MySQL Statement - Query Result

Jan 29, 2011

It is under PHP/MySQL
$queryresult = $conn->query("INSERT INTO normalrequests VALUES($finalkey, 1234, 5678, FALSE)");
It is connected to the database successfully but I feel there is something wrong with the statement up there.

View 6 Replies View Related

Programming :: Pass An Expect Command Result Into A Variable And Then Use It Again?

May 4, 2010

I'm trying to create a program that would locate the oldest file of a certain type on a server. Here's the commands:

OLDEST_PATH=`find -L / -depth -maxdepth 6 -mindepth 6 -type d | sort -f | head -1`
OLDEST_FILE=`find -L $OLDEST_PATH | grep .mp3 | sort -f | head -1`
ls -al $OLDEST_FILE

I'm writing this all in expect but I'm having problems. The main problem I have is whenever I try to run the first command, I can't seem to isolate the result of the OLDEST_PATH so that the 2nd command will work. There always seems to be a newline in the variable and the result is only "find -L" command running and it bypasses the variable. If I can just figure out how to get the 1st and 2nd command to work, then I can figure out the 3rd. Here's some code:

Code:
send "find -L / -depth -maxdepth 6 -mindepth 6 -type d | sort -f | head -1
"
sleep 20
expect -re "(.*)

[Code]....

I know there is a better way to write this. I've tried multiple ways and this just happens to be the last way I've tried it. If you try running this, you'll notice that there is still carriage returns after the result of OLDEST_PATH and it prevents the 2nd "find" command from working properly.

View 2 Replies View Related

Programming :: Print Cgi Result (loan Calculator) Using Popup

Jan 7, 2010

I am using the script below but need to make it to show the result in a html popup window. The script is Free and I don't think Kristina will complaint by making it more versatile.

The problem I have is that the script moves to a standalone window to show the results. I am interested in making it "popup' a window with the results.

Code:
#!/usr/bin/perl
# NOTE: You must change the line above to point to the path to Perl
# on your system.
#########################################################################
##### AffordaBilly v1.0#
##### Copyright 2001, Kristina L. Pfaff-Harris, scripts@tesol.net#

[Code]....

View 1 Replies View Related

Programming :: String Concatenation In Perl Result In Two Lines - Not One?

Jan 11, 2010

I am new to perl and am having trouble adding some strings together.

My full code is below:

The problem is $NewCommandB is always split into two lines, where the second line contains the "/atlas2/<blah>/<etc>/..." string. Since I am generating a .sh file to execute a lot of similar commands I need the string to all be on one line. Any idea why I get this behaviour and any suggestion on how to tell perl to make $NewCommandB a one line string?

Btw for completeness finalFileList.txt contains just file names one line after another:

View 5 Replies View Related

Programming :: Change A Mysql Query Result Prior To Display?

Oct 17, 2010

I am not sure if this is possible. I have IP's stored in a mysql database. When I query the database, it returns the IP. I would like to replace the IP with something else prior to displaying the results. Is it possible even though I have not stored it in the database?

I have the following in a while loop (mysql_fetch_array).

Code:
<td align="left">' . $row[IP] . '</td>

Instead of displaying $row[IP] from the database, I would like it to display something else which I define in the PHP code but based on the IP.

ie. aaa.bbb.ccc.ddd = hostnameABC

View 4 Replies View Related

Programming :: Splitting A Parent Process Into 2 Child And Then Merging Result?

Sep 15, 2010

What i am trying to do is i want to add numbers from 1 to 100. but that too using multiprocessing. So i made a c programme and using fork() command made two child processes. Now in one child process i am adding from 1 to 50. and in another i am adding 51 to 100. and then in the parent process adding the two results to get the final one. Now the result from the two function i am getting correctly. But after the wait() call the value returned is lost : See the programme below for reference

# include<stdio.h>
# include<unistd.h>
# include<sys/wait.h>
# include<stdlib.h>

[code].....

View 6 Replies View Related

Programming :: What Database To Use For C++

Jan 27, 2010

What database can I use for c++?,this is my first week programming in c++.

View 14 Replies View Related

Programming :: Slideshow Of Images In Javascript?

Jun 28, 2011

Check out the frontpage of mail.com - how do I do the scrolling images in Javascript, like it's doing?

View 4 Replies View Related

Programming :: Printing Images In CGI Script?

Feb 9, 2009

I have an image (a photo) in a variable (obtained from a MySQL database), eg. $ary[4]. I wish to display it in my Perl CGI script. My question is, th normal image tag ie. <IMG> takes a SRC parameter of a *file*, whereas I just want to PRINT the image in the variable.

View 3 Replies View Related

Programming :: Images Visualization And CGI Scripts

Apr 11, 2010

I'm writing a website with Perl/CGI. Why into my static html pages appear images and in my pages created by cgi script images don't appear?

View 1 Replies View Related

Programming :: Check If There Is Such A Value In The Database

Feb 10, 2010

sql statement. I am trying to check if there is such a value in the database.

Code:
string NewMovie = "ww";
string queryText ;
queryText = "Select * from movie_info WHERE movie_title = '"+ NewTitle +"'";
MYSQL *conn;
conn=mysql_init(NULL);
mysql_real_connect(conn,host,username,password,database,0,NULL,0);
[Code]......

return 0; The problem i am facing is how do i check if the value is found. I read up and found that a query will return a value of TRUE if the query is a success and a FAIL if there is an error. How do i call these values and then based the check on it?

View 1 Replies View Related

Programming :: Can't Upload Images With HTML Forms?

Feb 16, 2010

Well, the title says it all. I have a form like this in my document:

<form enctype="multipart/form-data" name="profile" method="post" action="?">
<input type="hidden" name="MAX_FILE_SIZE" value="250000">
Select image:<input type="file" name="image" />
<br />

[code]...

I even printed the $_FILES array and it looks like this:

Array ( [image] => Array ( [name] => bojan.jpg [type] => image/jpeg [tmp_name] => /var/upload/phpjarPwZ [error] => 0 [size] => 10096 ) )

But the problem is that this file never gets saved to /var/upload directory (I changed php.ini file, so that uploaded files should be saved into /var/upload. I tried /var/tmp as well, but it's the same). Here are also the permissions of this dir:

drwxr-xr-x 2 apache apache 48 2010-02-17 00:30 upload

BTW, I use Mandriva 2010 64 bit distribution. I spent last two days searching for solution on internet forums, asking people and made absolutely no progress. is it possible to debug what is happening with the supposedly uploaded file? I mean any logs, where I could find trace, what's going wrong? I tried to check /var/log/httpd and files in there, but no success either...

View 7 Replies View Related

Programming :: Find The Orphaned Images Using Grep

Jun 16, 2010

I have inherited a wordpress theme with a folder of images that I think are no longer being used. I wanted to find the orphaned images using grep, so I wrote this script:

Code:
#!/bin/bash
echo $PWD
for i in *.*; do
cd ..

[Code].....

Its seems like I got some false positives out of it, but it worked pretty ok. I guess. :| Of course, it is not checking for images in the content of the database.

Orphan finding has to be a wheel that is already invented.

View 1 Replies View Related

Programming :: Take The Png Images In A Folder And Pass Them To ClusterImage?

Jun 22, 2010

I am building a pipeline for image processing. I would like to be able to take the png images in a folder and pass them to clusterImage.pl once that is done I would like to then pass the outputted file to seperateObjects.pl the outputted file is of the same name but has kmeansOutput.all.matrix attached to the end. Below is what I have so far, but it is not working.

#!/bin/bash
#This script will take in an image and a matrix file.
#The output will be an image and a matrix file.
list=`ls *.png`
for i in $list

[Code].....

View 7 Replies View Related

Programming :: Use PIL In Python To Simple Composite Images

Jun 24, 2010

I have a render script that uses several Blender 3D instances on several machines to co-render one still image. The image is split into squares of 64 x 64 pixels. In the end, I have like 200 image files, each one with a puzzle piece of the whole.

Now I would like to assembe these pieces into whole with PIL and Python, but so far cannot figure out how. I am new to PIL, but in imagemagick, a convert image1.png image2.png image3.png +append finalimage.png works a charme. But convert chokes on so many image files, so I need something automatic and scalable. I think that pictures are RGBA, so black should be the alpha channel and transparent.

I think I have to mention that the pieces are in the right position and that every piece has the original dimensions of the full picture, so it is not a problem figuring out where each piece should be. Just putting all the pictures on top of eachother and ignoring anything that is black would do the trick nicely.

How can I reach this with PIL? Which functions do I need for that? PIL does a lot of stuff, so finding my simple function is daunting.

View 1 Replies View Related

Programming :: Creating Database Using C Language

Apr 7, 2011

How to create a database using c language it includes structures, pointers, arrays and switch..

View 4 Replies View Related

Programming :: Ping Hosts From Database?

Apr 26, 2011

I have a php scriptI want it to ping list of ips from a databse(using fping) and based on the status of the values to put them in a field(status) into the database(0 if down,1 if up)i executed tghe script and it gives me this error:Thread 1 - 17:51:01 26-04-2011 4.2.2.2 alive Couldn't execute query.I cant see what 's wrongthis is the source of the php script:

<?php
require_once("conf.php");
$connection1 = mysql_connect($h, $u, $p) or die("Couldn't connect.");

[code]....

View 1 Replies View Related

Programming :: PHP & MySQL - Query A Database From The Web?

Apr 26, 2010

I have created a database which stores students grades for different stages of a project. One of the stages of the project is the specification part. I have a simple bit of html code which is going to be used as the searching facility. I want the user to be able to enter their ID and then it will display only their results. At the moment, it is displaying the results for EVERY student because I cant seem to find the correct syntax for my statement.

Heres the HTML code

<html>
<head>
</head>
<body>
<body bgcolor="#6881bb">
<center>

[Code]....

At the moment when i click the button, no matter what I enter every students marks appear on the screen.

I think, but obviously dont know for sure because if i did i would know how to solve the problem, the code that i need to change is in green.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved