Search found 8 matches

by yisheng
Sun Jul 29, 2007 8:12 pm
Forum: PHP - Code
Topic: Setting URL in html codes to be valid
Replies: 3
Views: 521

Bring.Up.My.Post

Anyone with ideas on how it can be done ( first post )??

Thanks in advance.
by yisheng
Fri Jul 27, 2007 4:22 am
Forum: PHP - Code
Topic: call PHP code upon click to <li>List1</li>
Replies: 16
Views: 934

Replying to your replies. It's not about why and how. It's about views and what's your application is for. I do see that you don't want to use GET but i don't know the good reason behind it. I can't think of anyway beside a extra form if you wanna use post for now. Why not is because i don't like. I...
by yisheng
Fri Jul 27, 2007 4:06 am
Forum: PHP - Code
Topic: call PHP code upon click to <li>List1</li>
Replies: 16
Views: 934

Emm... from my point of view: *using javascript unnecessary ( you could use <a href="somepage.php?list=1">list 1</a> ) *refering to above, you would need styling to show user that the list can be click without hyperlinking else it's not user friendly *putting a form in a page that can do w...
by yisheng
Fri Jul 27, 2007 3:44 am
Forum: PHP - Code
Topic: call PHP code upon click to <li>List1</li>
Replies: 16
Views: 934

Put a form and hidden field.
onclick will change the hidden field value and submit the form.

Not good coding though...
by yisheng
Fri Jul 27, 2007 2:51 am
Forum: Databases
Topic: Getting date/time according to user time for PostgreSQL
Replies: 1
Views: 330

Ok, i just found this

Code: Select all

SELECT (NOW() + justify_interval(interval '+1 hour') - justify_interval(interval '+4 hour')) FROM sometable
Asumming +1 hour is user timezone and +4 hour is server timezone.

Is this a good way to retrieve user time?
by yisheng
Thu Jul 26, 2007 11:29 pm
Forum: Databases
Topic: Getting date/time according to user time for PostgreSQL
Replies: 1
Views: 330

Getting date/time according to user time for PostgreSQL

Hi, I'm trying to retrieve and displaying date and time of post according to user timezone. Such as this forum showing the date and time of post. I have done this in MySQL before - SELECT CONVERT_TZ(NOW(), sometable.server_time, sometable.user_time) AS user_time_now FROM sometable Is there a way to ...
by yisheng
Thu Jul 26, 2007 4:18 am
Forum: PHP - Code
Topic: Setting URL in html codes to be valid
Replies: 3
Views: 521

Thanks for your reply. I've refer to your link and saw it using iFrame to link to the external page. :( I with to achieve this by using the object tag. Using <object standby="Loading..." data="http://www.somepage.com" type="text/html" width="600" height="...
by yisheng
Wed Jul 25, 2007 10:55 pm
Forum: PHP - Code
Topic: Setting URL in html codes to be valid
Replies: 3
Views: 521

Setting URL in html codes to be valid

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi, I'm t...