<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022358" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022358</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/wheres-rrandom-number-string#comment-1138050</link>
    <description> &lt;p&gt;i didn&#039;t know about that.&lt;/p&gt;
&lt;p&gt;i need to find a good mysql book. do you have any recommendations?&lt;/p&gt;
&lt;p&gt;i wish you could search functions @ mysql.com like @ php.net&lt;/p&gt;
&lt;p&gt;that works like a charm to fix the problem. &lt;/p&gt;
&lt;p&gt;i noticed theres an issue inserting posts, but also in displaying. since they get inserted i think i&#039;ll continue working outthe forums.php display issues, but anything new will be in a new thread.&lt;/p&gt;
&lt;p&gt;i switched from &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mkfrmlst&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// make a forum into a table string for display&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# who/when of last post&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# who/when of last post&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;toTimestamp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# change to user&#039;s time format/zone&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gmmktime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# change to user&#039;s time format/zone&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tblln&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt; br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&amp;lt;/p&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tblln&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;to&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mkfrmlst&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// make a forum into a table string for display&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# who/when of last post&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# who/when of last post&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;No Posts&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;No Posts&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; }&lt;br /&gt;&amp;nbsp; else{ &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gmmktime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))); }&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# change to user&#039;s time format/zone&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tblln&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt; br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&amp;lt;/p&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tblln&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Sep 2003 18:03:10 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1138050 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/wheres-rrandom-number-string#comment-1138016</link>
    <description> &lt;p&gt;I don&#039;t have the time right now to go through all that (real life&#039;s been busy lately).&lt;/p&gt;
&lt;p&gt;You don&#039;t need a toTimestamp() function.  MySQL has several &lt;a href=&quot;http://guns4back2school.com/forums/index.php?showtopic=2209&quot; class=&quot;bb-url&quot;&gt;Date and Time Functions&lt;/a&gt;.  Noteably UNIX_TIMESTAMP().&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Sep 2003 01:00:01 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1138016 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/wheres-rrandom-number-string#comment-1137962</link>
    <description> &lt;p&gt;ok. last thing turned out to be this this line:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;should be&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;but....the function that makes the forum listing (i sent that out to a diff function so i change things once as mcgruff suggested) is this:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mkfrmlst&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// make a forum into a table string for display&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// forum info&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# who/when of last post&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# who/when of last post&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;toTimestamp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# change to user&#039;s time format/zone&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gmmktime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# change to user&#039;s time format/zone&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tblln&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; echo \&quot;&amp;lt;p&amp;gt;test:&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; -&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\$foruminf[&#039;last_post_time&#039;]; &lt;br /&gt;&amp;lt; br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lptd&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpta&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&amp;lt;/p&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tblln&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;and the timestamp:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;toTimestamp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# turn a mysql datetime into a unix timestamp&lt;br /&gt; # find all the&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# parts of time&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gmmktime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# get the unix timestamp&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,4); &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,5,2); &lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,8,2); &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,11,2); &lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,14,2); &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,17,2); &lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&amp;lt;/p&amp;gt;\&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;; # return it&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;the echos are there to debug.&lt;/p&gt;
&lt;p&gt;i don&#039;t get why i&#039;m getting -1 as a result from the toTimestamp function, but i am, as can be seen in this printout from the echos( i think that is what&#039;s causing the timestamp instead of display as a result of the gmmktime call):&lt;br /&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;Quote: 0000=substr(0000-00-00 00:00:00,0,4);&lt;br /&gt;
00=substr(0000-00-00 00:00:00,5,2);&lt;br /&gt;
00=substr(0000-00-00 00:00:00,8,2);&lt;br /&gt;
00=substr(0000-00-00 00:00:00,11,2);&lt;br /&gt;
00=substr(0000-00-00 00:00:00,14,2);&lt;br /&gt;
00=substr(0000-00-00 00:00:00,17,2);&lt;br /&gt;
-1=gmmktime(00,00,00,00,00,0000);&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;test:m/d/Y H:i:s -&amp;gt; -5.00&lt;br /&gt;
0000-00-00 00:00:00=$foruminf[&#039;last_post_time&#039;]; &amp;lt; br /&amp;gt;-1=toTimestamp(0000-00-00 00:00:00);&lt;br /&gt;
1062590357=gmmktime(m/d/Y H:i:s, (-1+(-5.00*60*60)));&lt;/p&gt;
&lt;p&gt;when the toTimestamp function worked fine in the tests i used.. so much so that i adjusted the page for someone elseon here to use... as demoed by this that i took from a past backup &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;path/to/includes (yes this is edited)\&quot;); # includes file&lt;br /&gt;# this is a test to get utc/gmt times&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$metime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=date(\&quot;Y-m-d H:i:s\&quot;, time());&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmdate(\&quot;Y-m-d H:i:s\&quot;, time());&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttimestamp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=time();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,4);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,5,2);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,8,2);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,11,2);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,14,2);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,17,2);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmdate(\&quot;Y-m-d H:i:s\&quot;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(-8*60*60)));&lt;br /&gt;&lt;br /&gt;/* list of 76 or so different ways to print the date */&lt;br /&gt;&lt;br /&gt;echo &amp;lt;&amp;lt;&amp;lt;END&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;simple time test page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;my time is: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$metime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;if this works right, this will be 4 or 5 hours ahead since it&#039;s&lt;br /&gt;&amp;lt;!--&#039;--&amp;gt; suppossed to be UTC/GMT time: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;gmt timestamp? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttimestamp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;breaking down gmt dateTime&lt;br /&gt;&amp;lt;br /&amp;gt; year: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt; month: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt; day: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt; hour: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt; min: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt; sec: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;toTimeStamp function test (should be the same as above) and switching back to a datetime&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;cali&#039;s&amp;lt;!--&#039;--&amp;gt; datetime (pst, not pdt): &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;choice tests for forums&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice01&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice02&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice03&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice04&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice05&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice06&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice07&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice08&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice09&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice10&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice11&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice12&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice13&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice14&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice15&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice16&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice17&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice18&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice19&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice20&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice21&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice22&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice23&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice24&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice25&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice26&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice27&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice28&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice29&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice30&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice31&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice32&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice33&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice34&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice35&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice36&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice37&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice38&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice39&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice40&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice41&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice42&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice43&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice44&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice45&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice46&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice47&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice48&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice49&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice50&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice51&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice52&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice53&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice54&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice55&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice56&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice57&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice58&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice59&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice60&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice61&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice62&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice63&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice64&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice65&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice66&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice67&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice68&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice69&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice70&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice71&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice72&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice73&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice74&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice75&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice76&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;hey mikusan, here&#039;s the php for you (well.. almost, i can&#039;t just use the showcode() &lt;br /&gt;commandhere because i don&#039;t wanna show a specific thing since it&#039;s irrelevant to the &lt;br /&gt;dispay other than gathering functions)&lt;br /&gt;END;&lt;br /&gt;echo &#039;&amp;lt;br /&amp;gt;&amp;amp;lt;?php&amp;lt;br /&amp;gt;&lt;br /&gt;# this is a test to get utc/gmt times&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$metime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=date(\&quot;Y-m-d H:i:s\&quot;, time());&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmdate(\&quot;Y-m-d H:i:s\&quot;, time());&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttimestamp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=time();&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,4);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,5,2);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,8,2);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,11,2);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,14,2);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,17,2);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmdate(\&quot;Y-m-d H:i:s\&quot;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(-8*60*60)));&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;echo &amp;amp;lt;&amp;amp;lt;&amp;amp;lt;END&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;html&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;head&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;title&amp;amp;gt;simple time test page&amp;amp;lt;/title&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;/head&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;body&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;p&amp;amp;gt;my time is: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$metime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt;if this works right, this will be 4 or 5 hours ahead since &lt;br /&gt;it\&#039;s suppossed to be UTC/GMT time: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt;gmt timestamp? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmttimestamp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;/p&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;p&amp;amp;gt;breaking down gmt dateTime&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt; year: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt; month: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt; day: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt; hour: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt; min: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt; sec: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;/p&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;p&amp;amp;gt;toTimeStamp function test (should be the same as above) &lt;br /&gt;and switching back to a datetime&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;br /&amp;amp;gt;cali\&#039;s datetime (pst, not pdt): &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;/body&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;amp;lt;/html&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;END;&amp;lt;br /&amp;gt;&lt;br /&gt;?&amp;amp;gt;&#039;;&lt;br /&gt;echo &#039;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&#039;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;(note: all code modified to prevent horizontal scrollling)&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Sep 2003 22:47:07 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1137962 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/wheres-rrandom-number-string#comment-1137904</link>
    <description> &lt;p&gt;i was asked by a friednwhat toTimestamp does exactly. here&#039;s the function:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;toTimestamp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# turn a mysql datetime into a unix timestamp&lt;br /&gt;&amp;nbsp; # find all the parts of time&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dateTime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gmmktime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hour&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# get the unix timestamp&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ts&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# return it&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Sep 2003 22:12:13 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1137904 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/wheres-rrandom-number-string#comment-1137897</link>
    <description> &lt;p&gt;the functionthat makes the forum list:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;getforums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# get the forum listing by user access level, db link&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/home/joshua/includes/fyd.altincs.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# includes file&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$findforums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT * FROM forums\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); # get forum info&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&#039;&#039;; # create an empty list. that will be filled with forums&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; // while we can retrieve more forums&lt;br /&gt;&amp;nbsp; while(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_fetch_array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$findforums&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;access&#039;]; # get forum access level&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$visitor&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){ # if everyone can see&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;]; // title of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;]; // id number of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;]; /// number of threads in forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;]; // who made the last post&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;];&amp;nbsp; // when was it made&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change to the user&#039;s time format/zone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$rmember&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){ # restricted to members&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # if you&#039;re signed in (visitor fal will not match any checks)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((contains(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$regulars&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))||(contains(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$desireds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))){ &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;]; // title of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;]; // id number of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;]; /// number of threads in forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;]; // who made the last post&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;];&amp;nbsp; // when was it made&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change to the user&#039;s time format/zone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pmember&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){ # resticted to paying members&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(contains(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$desireds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)){ # you&#039;re a paying member&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;]; // title of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;]; // id number of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;]; /// number of threads in forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;]; // who made the last post&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;];&amp;nbsp; // when was it made&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change to the user&#039;s time format/zone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$adult&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){ # restricted to those verified 18+&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(contains(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$adult&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)){ # you&#039;re verified 18+&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;]; // title of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;]; // id number of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;]; /// number of threads in forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;]; // who made the last post&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;];&amp;nbsp; // when was it made&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change to the user&#039;s time format/zone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$admoap&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){ # restricted to moderators/approvers/(jr) admins&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # you&#039;re a mod/app/...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((contains(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$moderators&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))||(contains(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$approvers&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))){ &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;]; // title of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;]; // id number of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;]; /// number of threads in forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;]; // who made the last post&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;];&amp;nbsp; // when was it made&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change to the user&#039;s time format/zone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fal&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$admin&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){ # restricted to (jr) admins&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$wbm&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)||(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$adm&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)||(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ual&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$jra&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)){ # you&#039;re on the admin team&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;]; // title of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;forum_id&#039;]; // id number of forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;threads&#039;]; /// number of threads in forum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_auth&#039;]; // who made the last post&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$foruminf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;last_post_time&#039;];&amp;nbsp; // when was it made&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change to the user&#039;s time format/zone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=gmmktime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$utds&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (toTimestamp(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)+(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gmtos&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*60*60)));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;forums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forum&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$threads&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lauth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lpt&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/tr&amp;gt;\n\&quot;; # add the row with the forum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;p&amp;gt;test:&amp;lt;table&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/table&amp;gt;&amp;lt;/p&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;and the one that displays it:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;showforums&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp; include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/home/joshua/includes/fyd.altincs.php\&quot;); # includes file for functions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; echo &amp;lt;&amp;lt;&amp;lt;END&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2&amp;gt;Welcome to the Find Your Desire Forums!&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h3&amp;gt;Gossip, read, post and mingle with other FindYourDesire members.&amp;lt;/h3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h3&amp;gt;Maybe you&#039;ll Find YOUR Desire!&amp;lt;/h3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tsw750&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th align=\&quot;center\&quot;&amp;gt;Forum&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th align=\&quot;center\&quot;&amp;gt;Threads&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th align=\&quot;center\&quot;&amp;gt;Last Post By&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th align=\&quot;center\&quot;&amp;gt;Last Post At&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$forumlist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt;&lt;br /&gt;END;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;$tsw750 is a table opening tag that sets the width to 750 pixels (so that it&#039;s formatted screen at 800 by 600 that&#039;s maximized or at least stretched open most of the way), there&#039;s also some other html attributes in there.&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Sep 2003 19:15:18 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1137897 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/wheres-rrandom-number-string#comment-1137891</link>
    <description> &lt;p&gt;Can you post the source code from the output?&lt;/p&gt;
&lt;p&gt;Looking at the stuff you posted, I don&#039;t see how this function could have output that.   tags force text to the next line, yet you have text on the same line as &quot;test:&quot;.  Plus, I can&#039;t see where the table columns are or anything.&lt;/p&gt;
&lt;p&gt;But by looking at the number itself.... they appear to be timestamps.  The first number is a single timestamp, the rest are two timestamps back to back.&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Sep 2003 17:15:42 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1137891 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
