December 13, 2009 by petz1step
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
Posted in php recipe | Tagged drop down list, php | Leave a Comment »
December 13, 2009 by petz1step
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.
Posted in Seagate Barracuda 7200.11 brick | Leave a Comment »
December 3, 2009 by petz1step
Mcnugget mcchicken coke coffee fries

Posted in Happenings | Tagged mcnugget | Leave a Comment »
December 3, 2009 by petz1step
My Seagate 7200.11 just got brick.I manage to update the firmware for one.will try hardwire method this weekend.
Posted in Seagate Barracuda 7200.11 brick | Tagged Seagate | Leave a Comment »
November 19, 2009 by petz1step
Cold night

Posted in Happenings | Tagged coffee, starbucks | Leave a Comment »
November 18, 2009 by petz1step
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.
Posted in Travel | Tagged Ascott, BKK | Leave a Comment »
November 18, 2009 by petz1step
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
Posted in Travel | Tagged Japan Hour, singapore, TV Tokyo | Leave a Comment »
November 12, 2009 by petz1step

Caramel time for us to melt. Night out 16+32+12+4=64…..
Posted in Happenings, Post My Spice | Tagged caramel, starbucks | Leave a Comment »
November 11, 2009 by petz1step

My first post on tattoo
Posted in Post My Spice | Tagged HTC, tattoo | Leave a Comment »
November 2, 2009 by petz1step
Referral visit to sgh blk 3 section l

Posted in Happenings | Tagged sgh | Leave a Comment »