Pages

Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess


Search the blog instead

Friday, November 30, 2007

Words and Antonyms

absence=>presence
accept=>refuse
accurate=>inaccurate
advantage=>disadvantage
alive=>dead
always=>never
ancient=>modern
answer=>question,=>query
approval=>disapproval
approached=>receded,=>departed
abundant=>scarce
admit=>deny
advance=>retreat,=>retire
artificial=>natural
arrival=>departure
ascend=>descend
attack=>defense
attractive=>repulsive
attention=>inattention
asleep=>awake
ally=>enemy
agree=>disagree
bad=>good
backward=>forward,=>onward
bend=>straighten
beautiful=>ugly
beginning=>ending
below=>above
bent=>straight
big=>small,=>little
blunt=>sharp
better=>worse
best=>worst
blame=>praise
bless=>curse
bitter=>sweet
borrow=>lend
bravery=>cowardice
build=>destroy,=>demolish
bold=>timid,=>meek
bright=>dull
broad=>narrow
clear=>vague,=>cloudy
careful=>rush,=>careless
calm=>troubled
capable=>incapable
captivity=>freedom,=>liberty
cellar=>attic
cheap=>dear,=>expensive
close=>distant
clever=>stupid
cold=>hot
combine=>separate
clockwise=>anti-clockwise
correct=>incorrect
conceal=>reveal
come=>go
common=>rare
comfort=>discomfort
courage=>cowardice
cruel=>kind
courteous=>discourteous,=>rude
cunning=>simple
dainty=>clumsy
danger=>safety
dark=>light
deep=>shallow
decrease=>increase
definite=>indefinite
demand=>supply
despair=>hope
disappear=>appear
disease=>health
discourage=>encourage
dismal=>cheerful
doctor=>patient
dry=>wet
dull=>clear,=>bright
dusk=>dawn
early=>late
easy=>difficult
ebb=>flow
East=>West
economise=>waste
encourage=>discourage
entrance=>exit
employer=>employee
empty=>full
excited=>calm
end=>beginning
expand=>contract
expensive=>inexpensive,=>cheap
export=>import
exterior=>interior
external=>internal
fail=>succeed
false=>true
feeble=>sturdy,=>strong,=>powerful
foolish=>wise
fast=>slow
few=>many
famous=>unknown
forelegs=>hind=>legs
fat=>thin
find=>lose
first=>last
freedom=>captivity
fold=>unfold
frequent=>seldom
forget=>remember
found=>lost
fresh=>stale
friend=>enemy
fortunate=>unfortunate
frank=>secretive
full=>empty
generous=>mean
gentle=>rough
gather=>distribute
glad=>sorry
gloomy=>cheerful
giant=>dwarf,=>pygmy
granted=>refused
great=>minute,=>small,=>little
guardian=>ward
guest=>host
guilty=>innocent
happy=>sad,=>miserable
hard=>soft
harmful=>harmless
hasten=>dawdle
hate=>love
healthy=>unhealthy,=>ill,=>diseased
here=>there
heavy=>light
height=>depth
hero=>coward
hill=>valley
horizontal=>vertical
hinder=>aid,=>help
honest=>dishonest
humble=>proud
hunger=>thirst
imitation=>genuine
immense=>tiny,=>minute
imprison=>free
include=>exclude
increase=>decrease
inhabited=>uninhabited
inferior=>superior
inside=>outside
intelligent=>unintelligent,=>stupid
inhale=>exhale
interior=>exterior,=>outside
interesting=>uninteresting,=>dull
internal=>external
intentional=>accidental
join=>separate
junior=>senior
justice=>injustice
king=>subject
knowledge=>ignorance
laugh=>cry
lawful=>unlawful
lazy=>industrious,=>energetic
land=>sea
landlord=>tenant
large=>little,=>small
last=>first
lawyer=>client
lecturer=>student
lender=>borrower
lengthen=>shorten
left=>right
less=>more
light=>dark,=>heavy
like=>dislike,=>unlike
likely=>unlikely
leader=>follower
little=>large,=>much,=>big
lofty=>lowly
long=>short
loud=>soft
loss=>find,=>win
low=>high
loyal=>disloyal
mad=>sane
magnetize=>demagnetize
master=>servant
mature=>immature
maximum=>minimum
me=>you
merry=>mirthless,=>sad
minority=>majority
miser=>spendthrift
misunderstand=>understand
narrow=>wide
near=>far,=>distant
neat=>untidy
new=>old
night=>day
noisy=>quiet
North=>South
obedient=>disobedient
odd=>even
offer=>refuse
open=>shut
optimist=>pessimist
out=>in
parent=>child
past=>present
patient=>impatient
peace=>war
permanent=>temporary
please=>displease
plentiful=>scarce
poetry=>prose
possible=>impossible
poverty=>wealth
powerful=>feeble,=>weak
polite=>impolite,=>rude
private=>public
prudent=>imprudent
pretty=>unsightly,=>ugly
pure=>impure
qualified=>unqualified
rapid=>slow
regularly=>irregularly
rich=>poor
right=>wrong,=>left
rigid=>pliable,=>soft
rough=>smooth
satisfactory=>unsatisfactory
security=>insecurity
scatter=>collect
serious=>trivial
second-hand=>new
sense=>nonsense
shopkeeper=>customer
singular=>plural
simple=>complicated
slim=>thick,=>stout
solid=>liquid
sober=>drunk
speaker=>listener
sour=>sweet
sorrow=>joy
sow=>reap
stand=>lie
straight=>crooked
strong=>weak
success=>failure
sunny=>cloudy
take=>give
tall=>short
tame=>wild
teacher=>pupil
thick=>thin
tight=>slack,=>loose
top=>bottom
transparent=>opaque
truth=>untruth,=>lie
up=>down
vacant=>occupied
valuable=>valueless
victory=>defeat
virtue=>vice
visible=>invisible
voluntary=>compulsory
vowel=>consonant
wax=>wane
wisdom=>folly
within=>without

Non-Standard HTML Codes

audioscope
bgsound>
blackface> ..
blink> ..
bq>
comment> ...
embed>
fn> ...
ilayer> ...
image>
keygen>
layer> ..
limittext>
listing> ...
marquee>
multicol> .
nobr>
noembed
nosmartquotes
plaintext>
rt>
ruby>
server>
shadow>
sidebar>
spacer>
wbr>
xml>
xmp>

Wednesday, November 28, 2007

Nepali Websites

1
1
1
1
1
1

Internet Connection Sharing in Windows XP

How to use Internet Connection Sharing

To use Internet Connection Sharing to share your Internet connection, the host computer must have one network adapter that is configured to connect to the internal network, and one network adapter or modem that is configured to connect to the Internet.

On the host computer

On the host computer, follow these steps to share the Internet connection:
1.Log on to the host computer as Administrator or as Owner.
2.Click Start, and then click Control Panel.
3.Click Network and Internet Connections.
4.Click Network Connections.
5.Right-click the connection that you use to connect to the Internet. For example, if you connect to the Internet by using a modem, right-click the connection that you want under Dial-up.
6.Click Properties.
7.Click the Advanced tab.
8.Under Internet Connection Sharing, select the Allow other network users to connect through this computer's Internet connection check box.
9.If you are sharing a dial-up Internet connection, select the Establish a dial-up connection whenever a computer on my network attempts to access the Internet check box if you want to permit your computer to automatically connect to the Internet.
10.Click OK. You receive the following message:
When Internet Connection Sharing is enabled, your LAN adapter will be set to use IP
address 192.168.0.1. Your computer may lose connectivity with other computers on
your network. If these other computers have static IP addresses, it is a good idea to set them
to obtain their IP addresses automatically. Are you sure you want to enable Internet
Connection Sharing?
11.Click Yes.
The connection to the Internet is shared to other computers on the local area network (LAN). The network adapter that is connected to the LAN is configured with a static IP address of 192.168.0.1 and a subnet mask of 255.255.255.0

To view a video about how to configure the host computer for Internet Connection Sharing, click the Play button (Play     button) on the following Windows Media Player viewer:




Note To view this video, you must use Windows Media Player 7.0 or later.

For additional information about how to obtain Windows Media Player version 7.1, click the following article number to view the article in the Microsoft Knowledge Base:
299321 (http://support.microsoft.com/kb/299321/) Description and availability of Windows Media Player 7.1

On the client computer

To connect to the Internet by using the shared connection, you must confirm the LAN adapter IP configuration, and then configure the client computer. To confirm the LAN adapter IP configuration, follow these steps:
1.Log on to the client computer as Administrator or as Owner.
2.Click Start, and then click Control Panel.
3.Click Network and Internet Connections.
4.Click Network Connections.
5.Right-click Local Area Connection, and then click Properties.
6.Click the General tab, click Internet Protocol (TCP/IP) in the This connection uses the following items list, and then click Properties.
7.In the Internet Protocol (TCP/IP) Properties dialog box, click Obtain an IP address automatically (if it is not already selected), and then click OK.

Note You can also assign a unique static IP address in the range of 192.168.0.2 to 192.168.0.254. For example, you can assign the following static IP address, subnet mask, and default gateway:
   IP Address      192.168.0.2
Subnet mask 255.255.255.0
Default gateway 192.168.0.1
8.In the Local Area Connection Properties dialog box, click OK.
9.Quit Control Panel.
To view a video about how to confirm the LAN adapter IP configuration, click the Play button (Play button) on the following Windows Media Player viewer:




Note To view this video, you must use Windows Media Player 7.0 or later.

For additional information about how to obtain Windows Media Player version 7.1, click the following article number to view the article in the Microsoft Knowledge Base:
299321 (http://support.microsoft.com/kb/299321/) Description and availability of Windows Media Player 7.1
To configure the client computer to use the shared Internet connection, follow these steps:
1.Click Start, and then click Control Panel.
2.Click Network and Internet Connections.
3.Click Internet Options.
4.In the Internet Properties dialog box, click the Connections tab.
5.Click the Setup button.

The New Connection Wizard starts.
6.On the Welcome to the New Connection Wizard page, click Next.
7.Click Connect to the Internet, and then click Next.
8.Click Set up my connection manually, and then click Next.
9.Click Connect using a broadband connection that is always on, and then click Next.
10.On the Completing the New Connection Wizard page, click Finish.
11.Quit Control Panel.
When you now start Microsoft Internet Explorer, the client computer will try to connect to the Internet by using the host computer's shared Internet connection.

To view a video of how to configure the client computer to use the shared Internet connection, click the Play button (Play     button) on the following Windows Media Player viewer:




Note To view this video, you must use Windows Media Player 7.0 or later.

For additional information about how to obtain Windows Media Player version 7.1, click the following article number to view the article in the Microsoft Knowledge Base:
299321 (http://support.microsoft.com/kb/299321/) Description and availability of Windows Media Player 7.1

Back to the top

Troubleshooting

When you turn on Internet Connection Sharing on the host computer, the host computer's LAN adapter is automatically assigned the IP address of 192.168.0.1. Therefore, one of the following situations may occur:
IP address conflict
Each computer on the LAN must have a unique IP address. If more than one computer has the same IP address, an IP conflict occurs, and one of the network adapters turns off until the conflict is resolved. To resolve this conflict, configure the client computer to automatically obtain an IP address, or assign it a unique IP address.
Loss of network connectivity
If your network is configured with a different IP address range than Internet Connection Sharing uses, you will lose network connectivity with the host computer. To resolve this issue, configure the client computers to automatically obtain an IP address, or assign each client computer a unique IP address in the range of 192.168.0.2 to 192.168.0.254.


Back to the top

REFERENCES

For additional information about Internet Connection Sharing, click the following article numbers to view the articles in the Microsoft Knowledge Base:
234815 (http://support.microsoft.com/kb/234815/) Description of Internet Connection Sharing
308552 (http://support.microsoft.com/kb/308552/) Description of the Network Setup Wizard in Windows
308021 (http://support.microsoft.com/kb/308021/) Resources for troubleshooting Internet Connection Sharing in Windows XP
308006 (http://support.microsoft.com/kb/308006/) Troubleshooting Internet Connection Sharing in Windows XP
310563 (http://support.microsoft.com/kb/310563/) Description of Internet Connection Sharing in Windows XP

Tuesday, November 27, 2007

Adsense Alternatives When Google Bans Your Account

Adsense Alternatives When Google Bans Your Account

Google recently disabled the Adsense account of John Q. Public for generating invalid or fraudulent clicks.
It has come to our attention that invalid clicks have been generated on the Google ads on your site(s). We have therefore disabled your Google AdSense account. Please understand that this step was taken in an effort to protect the interest of the AdWords advertisers. [from adsense-adclicks@google.com]
His subsequent appeals to Adsense Support were also turned down.

John Q. Public is now looking for alternate revenue streams to monetize his blog and sends us the following questions:

Q 1: Can I get back my Adsense Account ?

There are few cases when previously banned Adsense publishers managed to reinstate their Google account successfully with Google only deducting some amount related to invalid clicks.
Thank you for clarifying your situation. We have reviewed your circumstances and have reinstated your account, effective immediately. Based on the findings of our investigation, we have deducted $30.82 from your account. [from adsense-adclicks-appeal@google.com]
While it is not a bad idea to follow your case with Google, not everyone may be so lucky as Stas or Jason. Generally, the chances of resurrecting your Adsense account are less.

Q 2: If the answer is No, then what's best alternate for adsense.

While Adsense still rules in terms of Ad inventory, there are tons of other advertising programs that can you consider for your blog depending on your niche and demographics. Here are some popular alternatives:

Adsense Alternatives» Yahoo YPN - If you are located in the US, this is probably the best alternative to Adsense. Yahoo Panama is launching on February 5th.

» FeedBurner Ads - Feedburner is probably performing quite very well for a lot of publishers. The ads are CPM in nature and they have decent reporting engine.

» Text Link Ads, Adbrite - You can sell text links on your blog pages using any of these programs. They also let you add advertising in your RSS feeds.

» Kontera, IntelliTXT - These are inline contextual advertising programs that double-underline the keywords. Some users may however find this annyoying since the ad appears in a pop-up window.

» Chitika, Amazon Affiliates - If you are writing a product blog, Chitika may result in good conversion rates - people read the product review on your website and then proceed to these sites for buying the links. Amazon is good for blog that enjoy a fan following and readers buy what you recommend.

Other popular advertising options include Tribal Fusion, Adify, Pheedo and BlogAds depending on your site traffic. [Picture from Flickr]

Q 3: Does Google block the account or the website itself ? Actually I was planning to sell my blog so can the new owner use his own Adsense Account to insert ads in my blog ?

Google generally bans the Adsense account, not the website showing the Google ads. It is however recommended that the "prospective buyer" checks this with Google Adsense Support himself before closing the deal with you. It is very likely that Google will permit him to show ads on your site using his own Adsense account.

Important: Just take care that you don't open another Adsense account with Google using different credentials (like an abbreviated name or a different address) - Google is very likely to discover this activity and they'll will probably ban you again. [Name changed to protect identity]

What's on a man's mind

Some pictures related to Sigmund Freud's Quote "What's on a man's mind"


whats_on_a_mans_mind

human_brain

Sunday, November 25, 2007

Jar files database

Website having list of jars around the web

http://www.jarhoo.com/

G.ho.St

G.ho.st = global hosted operating system

http://g.ho.st simply amazing

What I did for internet connection sharing from my Kubuntu PC to a Windows XP PC

In my case I did the following

  • I created a file named connection, made it executable and copied the following contents into it
    • ifconfig eth0 192.168.0.1
    • iptables -A FORWARD -i eth1 -o eth0 -s 192.168.0.0/24 -m state --state NEW -j ACCEPT
    • iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
    • iptables -A POSTROUTING -t nat -j MASQUERADE
    • sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

  • In the windows computer I set the following configurations
    • IP 192.168.0.30
    • Subnet mask 255.255.255.0
    • Default Gateway 192.168.0.1
    • DNS 192.168.0.1

#######################################################

The following was in the Official Ubuntu Documentation at
https://help.ubuntu.com/community/InternetConnectionSharing

InternetConnectionSharing

  • On Server:

    • You will need one or two network cards in the server, or a network card and a PPP interface. One network card connects to your internal network, we will call this card eth1. The other, or your PPP interface, connects to the internet, we will call this eth0 or ppp0. If you are running both networks off of the same card, then use eth0:0 for the internal network and eth0 for the internet.

    • First, configure the interface of your network card, for example using eth0 or eth0:0 like so:

      $sudo ifconfig eth0 192.168.0.1
    • then configure NAT on iptables:

      $sudo iptables -A FORWARD -i eth1 -o eth0 -s 192.168.0.0/24 -m state --state NEW -j ACCEPT
      $sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
      $sudo iptables -A POSTROUTING -t nat -j MASQUERADE

(rule1 allows forwarded packets (initial ones), rule2 allows forwarding of established connection packets (and those related to ones that started), rule3 does the NAT.):

$sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

(in case of ADSL, you sometimes need to use ppp1)

FYI: There is a "Bug" in Gutsy (Ubuntu 7.10) and you will need to make a small edit in /etc/sysctl.conf

Add these lines :

net.ipv4.conf.default.forwarding=1
net.ipv4.conf.all.forwarding=1

[WWW] Launchpad Bug Report

  • Then move on to the clients:

    • Unconfigure all network cards:

      $sudo /etc/init.d/networking stop
    • Set the new IP address with the same network range as the server (for example 192.168.0.xxx)

      $sudo ifconfig eth 

      , where eth is the network card and is the IP for the client.

    • Configure routing:

      $sudo route add default gw 

      , where is the server IP (in this example 192.168.0.1).

    • Add gateways, ask the server maintainer for the DNS and include then on /etc/resolv.conf such as:

       

And you are all set, any questions/comments, mail me =)


A beginner's working example of a Ubuntu Desktop with 2 nic cards, sharing internet connection [WWW] http://ubuntuforums.org/showthread.php?p=3713684

Other approaches

Internet connection sharing is called masquerading or Network Address Translation.

To serve dynamic addresses, you need to be a DHCP server. You also need to do IP and DNS masquerading. Easy:

Install dnsmasq (a DNS masquerade as well as a DHCP server) and ipmasq (IP masquerading).

Configure dnsmasq by editing the config file and making it go: (basically, two things)

sudo /etc/init.d/dnsmasq restart

configure ipmasq to allow dhcp requests, otherwise you need to stop ipmasq to make a connection. You need to copy a .rul from the documentation directory into the /etc config and edit the interface name. Then reconfigure ipmasq to start after networking has been started

sudo dpkg-reconfigure ipmasq.

Another approach --- set up Firestarter, to run connection sharing, set up dhcp3-server, and set its configuration to listen to the correct eth*. To change this later, run sudo dpkg-reconfigure dhcp3-server.

Basically, you need to have Firestarter active/turned on/protecting, to have the connection shared.

When you install dhcp3-server, it will place a sample config file in your /etc/dhcp3 folder, called dhcpd.conf. I suggest you install dhcp3-server first, and then firestarter, cause if you are lucky, firestarter will set up a new config file for dhcp3 for you.

If you are less lucky, well, this file works, and I got it from another person, so it seems generic enough: [WWW] http://www.mts.net/~danb/sampledhcpd.conf . Remember to change the DNS server if using that file, cause you don't want name resolution to be done by my ISP, it will be slow. To find what DNS server your Ubuntu is using: System>Admin>Network>DNS tab.

At any time that changes are made to your dhcpd.conf file, restart the server - sudo /etc/init.d/dhcp3-server restart will do it. Alternatively, every time you run the sudo dpkg-reconfigure dhcp3-server, at the end, your server will restart.

There are several issues that I had...first of all, the Firestarter firewall won't even start if you don't have it configured to listen to the right interface...You can change which one it listens to in Preferences --> Network Settings. The Local network connected device must be the same as you have dhcp3-server listening to, of course, both checkboxes under that need to be checked. The Internet connected network device will be the one that is configured for Internet. Now, I have two NICs, but I have pppoe configured on eth0, and I have Internet connection sharing configured on the same one, cause eth0 is also configured for a static 192.168 internal IP for my internal network.

Internet Connection Sharing Documentation thread [WWW] http://ubuntuforums.org/showthread.php?s=88b74f79f0ab07638e6b361c09040b45&t=503287


CategoryDocumentation CategoryCleanup


Friday, November 23, 2007

Reading String in JAVA from command line

Reading in string input from the command line in Java


import java.io.*;

public class StringReader
{

public static void main (String[] args)
{

System.out.println("Type some text and press 'Enter.'");


String string = "";
InputStreamReader input = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(input);

// read in user input

try
{

string = reader.readLine();

}
catch(Exception e){}
System.out.println("You typed: " + string);

// wait for user to type 'Enter' so console window won't dissapear

System.out.println("Type 'Enter' to exit.");

try
{

string = reader.readLine();

}
catch(Exception e){e.PrintStackTrace();}

}

}



Site: http://rotterdam.ics.uci.edu/info/JavaStringReading.htm

SQL UPDATE syntax

UPDATE "table_name"
SET column_1 = [value1], column_2 = [value2]
WHERE {condition}

Tuesday, November 20, 2007

Javascript Text Rolling Widget



#####



###########




















Click to Roll


div 1


sdf ajsdf asdfa sdf


asd fjashdf a
sdf ajsdf asdfa sdf v


sdf ajsdf asdfa sdf


sdf ajsdf asdfa sdf fgsDFsss


sdf ajsdf asdfa sdf Aasdfsdfasdfasdfsss


Some of my works

Karmada Flex Design I think something around Jan/Feb 2007 I had designed for.
But the karmada guys do not know that, ha ha amazing


and a map of nepal too

How to Capture KDM Screen

chvt 9 ; sleep 5 ; XAUTHORITY=/var/gdm/:0.Xauth DISPLAY=:0.0 import -window root /tmp/gdm-shot.png


##########information#############
chvt is the screen number . If its value is 10 then it means the screen is obtained as CTRL+ALT+F10
sleep is the time for the screenshot
/tmp/gdm-shot.png is the destination image


chvt 10 ; sleep 5 ; XAUTHORITY=/var/gdm/:0.Xauth DISPLAY=:0.0 import -window root /tmp/gdm-shot.png

Sunday, November 18, 2007

Some best javascript tutorials

http://home.hetnet.nl/~hans-kuipers5/js/timer.htm

http://www.schillmania.com/content/projects/javascript-animation-1/

http://www.schillmania.com/projects/fireworks/

http://www.howtocreate.co.uk/tutorials/javascript/timers

Saturday, November 17, 2007

Arjun Dai son Avanshu Photos Page

they are hosted here
Avanshu photos
son of arjun gautam nepal
http://flickr.com/photos/10664155@N07/tags/arjundaifirstchild/

mysql_fetch_object

website:http://www.php.net/manual/en/function.mysql-fetch-object.php

mysql_fetch_object

(PHP 4, PHP 5, PECL mysql:1.0)

mysql_fetch_object — Fetch a result row as an object

Description

object mysql_fetch_object ( resource $result [, string $class_name [, array $params]] )

Returns an object with properties that correspond to the fetched row and moves the internal data pointer ahead.

Parameters

result

The result resource that is being evaluated. This result comes from a call to mysql_query().

class_name

The name of the class to instantiate, set the properties of and return. If not specified, a stdClass object is returned.

params

An optional array of parameters to pass to the constructor for class_name objects.

Return Values

Returns an object with string properties that correspond to the fetched row, or FALSE if there are no more rows.

mysql_fetch_row() fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0.

ChangeLog

VersionDescription
5.0.0 Added the ability to return as a different object.

Examples

Example 1428. mysql_fetch_object() example

mysql_connect("hostname", "user", "password");
mysql_select_db("mydb");
$result = mysql_query("select * from mytable");
while (
$row = mysql_fetch_object($result)) {
echo
$row->user_id;
echo
$row->fullname;
}
mysql_free_result($result);
?>

Example 1429. mysql_fetch_object() example


$row
= mysql_fetch_object($result);

/* this is valid */
echo $row->field;
/* this is invalid */
// echo $row->0;

?>

Notes

Performance: Speed-wise, the function is identical to mysql_fetch_array(), and almost as quick as mysql_fetch_row() (the difference is insignificant).

Note: mysql_fetch_object() is similar to mysql_fetch_array(), with one difference - an object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names).

Note: Field names returned by this function are case-sensitive.

Note: This function sets NULL fields to PHP NULL value.

PHP, BLOB and picture

website: http://www.webmasterworld.com/forum88/1325.htm


$sql = "SELECT Pic FROM Pictures WHERE ID=$id";
if(!($result=@mysql_query($sql))) showerror;

$data=@mysql_fetch_array($result);

if (!empty($data['Pic']))
{
//Change content type to your file type
header("Content-Type: image/gif");
print $data['Pic'] ;
}
Your Ad Here