| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Oct 2003 
				Location: Atlanta 
				
				
					Posts: 2,840
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				Mysql help needed.
			 
			i have a db field called p_time and all the entires are in unix_timestamp 1109679576 how do i convert all field entries to a format like this 8/23/2005 0:08? 
		
	
		
		
		
		
		
	
	this is all i've found so far $rs=mysql_fetch_row(mysql_query("select p_time from rate_forum_posts")); echo date("m/d/YYYY h:i ", $rs[0]); that doesn't work when i try an to run it on the insert SQL page  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 <&(©¿©)&> 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2002 
				Location: Chicago 
				
				
					Posts: 47,882
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 use -> FROM_UNIXTIME() 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Oct 2003 
				Location: Atlanta 
				
				
					Posts: 2,840
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 do you have a working example that i can work from, to put something together to run at shell? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Aug 2004 
				
				
				
					Posts: 913
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 From_unixtime() 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Sig for sale. ICQ: 163-545-054  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Registered User 
			
		
			
			
			Join Date: Jun 2005 
				
				
				
					Posts: 89
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 SELECT from_unixtime(p_time) FROM rate_forum_posts 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Oct 2003 
				Location: Atlanta 
				
				
					Posts: 2,840
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 salad tossing sig guy 
			
		
			
				
			
			
			Join Date: Apr 2002 
				Location: mrthumbs*gmail.com 
				
				
					Posts: 11,702
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 why would you want to do that? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 salad tossing sig guy 
			
		
			
				
			
			
			Join Date: Apr 2002 
				Location: mrthumbs*gmail.com 
				
				
					Posts: 11,702
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 date("m/d/Y H:i" should put it in the right format.. 
		
	
		
		
		
		
		
	
	YYYY gives 2005200520052005 as output. and mind the cap H... Make sure you converted the dbase field to Varchar since INT (which is probably used to store the numeric format) doesnt support the format (which includes spaces and characters) you want.  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Oct 2003 
				Location: Atlanta 
				
				
					Posts: 2,840
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 i'm migrating a forum over and the new forum has the date field in the format of 8/23/2005 0:08 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Oct 2003 
				Location: Atlanta 
				
				
					Posts: 2,840
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |