Feeds:
Posts
Comments

Drop down list

Creates a simple drop down list from a SQL query. Column 1 of the query should be the reference, column 2 should be the descriptive text / list entry. You still have to create the tag within your HTML.

The default value is used to preselect an entry. The value of default is a value that will be in column 1 of the query results.

The value for blank is inserted at the top of the drop down list if required, either as a default value or for informative or instructive text.
<?php
function db_createlist($linkID,$default,$query,$blank)
{
if($blank)
{
print("$blank”);
}

$resultID = pg_exec($linkID,$query);
$num = pg_numrows($resultID);

for ($i=0;$i<$num;$i++)
{
$row = pg_fetch_row($resultID,$i);

if($row[0]==$default)$dtext = "selected";
else $dtext = "";

print("$row[1]“);
}
}
?>

Example

Sh…..t
the rma unit down. Must be that time i upgraded the firmware.
Now it is down again.

Manage to hook up the current unit to the new firmware.
But it is still not doing well. Occasionally when viewing video, it hangs at certain frames.
DONT BUY SEAGATE.
I should have got an Hitachi/WD that time.

I am going to try out the new method that they been doing in the web to salvage their bricked 7200.11. Bought the CA-42 cable on the web. Damn hard to get hold of one in my place. All the places that i have been to only have CA-53/DKU-2.Hope it reach me by Christmas. Already got my molex connector…an screwdriver.

Just hook up my new WDC Green 1TB….running smoothly…
Can’t wait to test out the experiment.

Curry Mcnugget

Mcnugget mcchicken coke coffee fries

Seagate 7200.11

My Seagate 7200.11 just got brick.I manage to update the firmware for one.will try hardwire method this weekend.

Starbucks@BukitTimah

Cold night

Bangkok Trip 2009 (Pt1)

21 Oct 2009
Airport to Ascott
The airport is very huge and looks well maintained.
But it looks a bit empty. As you exit the immigration area, there are 22 baggage conveyor belts one after another. Be prepare for a long walk. Custom trolley (non-airport standard) is also difficult to find.

The airport limousine van cost 1200Bath. (not 650Bath as reported)
I presume it will be cheaper if you take the Metro or Normal Taxi.
Supper with taxi to a nearby area – the only complain is pineapple rice and a bit expensive.

Ascott apartment was huge with 2 bedrooms. Considered a bargain for the price i paid for it.

22 Oct 2009
Boat taxi – scared the hell of both of the old ladies.
It was a hell exciting ride. By the time we reach the temples, mum was too shock to move around. Interesting place.

Lunch was in Siam Paragon.

TV Tokyo “Japan Hour”

This site is the official site of the popular Sat/Sun show in Singapore about Japan.

It has all the itinerary for every show dated back as far as 5 years ago.

Japan Hour

Enjoy

image

Caramel time for us to melt. Night out 16+32+12+4=64…..

Home the first frontier

image

My first post on tattoo

SGH

Referral visit to sgh blk 3 section l

Older Posts »