<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013208" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013208</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076678</link>
    <description> &lt;p&gt;Thanks, found out!&lt;/p&gt;
&lt;p&gt;~Casper&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Jan 2001 16:09:32 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1076678 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076676</link>
    <description> &lt;p&gt;WHEW!!  ....it works.&lt;/p&gt;
&lt;p&gt;date/time.... now()&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Jan 2001 15:59:38 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1076676 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>and one last little question</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076663</link>
    <description> &lt;p&gt;How do I find out the servers date/time? I will need to put that into the database too...&lt;br /&gt;
I think that it should be an easy server variable, so it shoudln&#039;t be hard to do.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;~Casper&lt;/p&gt;
&lt;p&gt;Secrets Of War:&lt;br /&gt;
&lt;a href=&quot;http://www.secretsofwar.vze.com&quot; class=&quot;bb-url&quot;&gt;http://www.secretsofwar.vze.com&lt;/a&gt;&lt;br /&gt;
if server down:&lt;br /&gt;
www15.brinkster.com/secretsofwar&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Jan 2001 10:07:24 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1076663 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076662</link>
    <description> &lt;p&gt;I works!&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;
&lt;p&gt;No, I don&#039;t program C#, I only program in ASP, and script in javascript...&lt;/p&gt;
&lt;p&gt;The game is a game a little like &lt;a href=&quot;http://www.cashwars.com/r/hotcut&quot; class=&quot;bb-url&quot;&gt;Cashwars&lt;/a&gt;, just WAY more advanced, and more fun ;=)&lt;br /&gt;
When the game gets up and runnning, you will be abel to win money, and steal them from other people playing the game! (without risk offcourse) I think that its gonna be cool!&lt;/p&gt;
&lt;p&gt;~Casper&lt;/p&gt;
&lt;p&gt;Yea, the guy next to me is dead... real messy though, I wouldn&#039;t like to clean him off my boots...&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Jan 2001 10:02:24 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1076662 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076626</link>
    <description> &lt;p&gt;Whatever version of C (C, C++, C#)....&lt;/p&gt;
&lt;p&gt;What kind of game is it? I couldn&#039;t find any info on the site.&lt;/p&gt;
&lt;p&gt;Well, I&#039;m sure about anything right now, because I have no access to a NT server right now. But I&#039;ll take a stab at it.&lt;/p&gt;
&lt;p&gt;the problem I see is the &#039;Dim&#039; statement.  I don&#039;t think that ASP is seeing infoArray as a multi-dimension array [array(1)(2)].&lt;br /&gt;
Solutions:&lt;br /&gt;
&#039;Dim&#039; it larger than necessary. Like infoArray(100)(&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/nerdy.png&quot; title=&quot;Cool&quot; alt=&quot;Cool&quot; class=&quot;smiley-content&quot; /&gt; [or ideally: infoArray(num_players)(num_stats_per_semicolon)]&lt;br /&gt;
OR&lt;br /&gt;
Find another way to store the info when we pull it out of the DB&lt;br /&gt;
OR&lt;br /&gt;
Re-design the DB (messy, but I could reduce size... let me know if you wanna do that)&lt;/p&gt;
&lt;p&gt;Let&#039;s try the first one. I&#039;m not sure how ASP will handle vars like this in a &#039;dim&#039; statement, but lets try anyway...&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Num_Stats = 8&amp;nbsp; &amp;#039;numerb of stats per semi-colon&lt;br /&gt;Num_Players = rsRecordSet.RecordCount&lt;br /&gt;&lt;br /&gt;dim infoArray(Num_Players)(Num_Stats)&lt;br /&gt;dim i, totalinfoArray&lt;br /&gt;&lt;br /&gt;totalinfoArray = split(rsRecordSet(&amp;quot;attacklog&amp;quot;), &amp;quot;;&amp;quot;) &lt;br /&gt;for i=0 to UBound(totalinfoArray)&lt;br /&gt;&amp;nbsp; infoArray(i) = split(totalinfoArray(i), &amp;quot;,&amp;quot;)&lt;br /&gt;next&lt;br /&gt;&lt;br /&gt;for i=0 to UBound(totalinfoArray)&lt;br /&gt;&amp;nbsp; &amp;#039;I am writing out the code here.&lt;br /&gt;next&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Did you strangle the guy next to you?&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Jan 2001 18:47:44 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1076626 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076624</link>
    <description> &lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can&#039;t get it to work!&lt;/p&gt;
&lt;p&gt;When I try to run the code, it says that the types mismath!&lt;/p&gt;
&lt;p&gt;Here is the code I am using:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;dim infoArray, i, totalinfoArray&lt;br /&gt;&lt;br /&gt;totalinfoArray = split(rsRecordSet(&amp;quot;attacklog&amp;quot;), &amp;quot;;&amp;quot;) &lt;br /&gt;for i=0 to UBound(totalinfoArray)&lt;br /&gt;&amp;nbsp; infoArray(i) = split(totalinfoArray(i), &amp;quot;,&amp;quot;) &amp;#039;it is in this line it tells me that there is an error&lt;br /&gt;next&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for i=0 to UBound(totalinfoArray)&lt;br /&gt;&lt;br /&gt;&amp;#039;I am writing out the code here.&lt;br /&gt;&lt;br /&gt;next&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Do you see any problem with this? The contents of the cell I am getting the data from is:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;factory,0,0,0,29,9,lost,hotcut;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thats it...&lt;/p&gt;
&lt;p&gt;I really hope that you can help me with this!&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;
~Casper&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Jan 2001 16:00:34 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1076624 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076619</link>
    <description> &lt;p&gt;I think that you have helped me out again Max! Thanks for that!&lt;/p&gt;
&lt;p&gt;To ansver some of YOUR questions:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;are you a C programmer?? &lt;/strong&gt;&lt;br /&gt;
Do you mean if I program C++?&lt;/p&gt;
&lt;p&gt;in the next question you ask me why I only have 1 cell per user. I have more than 12 by now, but this one will be having some special data, which will be of very different size per user.&lt;br /&gt;
I am programming an online game ( &lt;a href=&quot;http://www.secretsofwar.vze.com&quot; class=&quot;bb-url&quot;&gt;http://www.secretsofwar.vze.com&lt;/a&gt; )so I need to store all information regarding attacks in a database cell. Due to that it is different how much attack info there is on each person, I will need to store the info on a single cell, in order to make it work - I THINK&lt;/p&gt;
&lt;p&gt;And... I don&#039;t want to make too many cells... Right now there is only 47 players, and the databse allready have a size of more than 5 megabyte...&lt;/p&gt;
&lt;p&gt;Back to subj.&lt;/p&gt;
&lt;p&gt;I think that you have given me the information I need for now, but I might need some more help later... Keep an eye on this thread &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;~Casper Bang&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Jan 2001 13:36:20 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1076619 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/splitting-date-asp#comment-1076596</link>
    <description> &lt;p&gt;are you a C programmer??&lt;br /&gt;
don&#039;t ask why I asked, just popped into my mind when I read your post..&lt;/p&gt;
&lt;p&gt;another question, why have you used one cell per user?&lt;br /&gt;
and why have you put soo much info in that cell?&lt;br /&gt;
(it&#039;s just asking for a headache)&lt;/p&gt;
&lt;p&gt;moving on.....&lt;br /&gt;
you did get the Split() syntax correct&lt;br /&gt;
as for the number of elements in an array, use UBound(array_name)&lt;/p&gt;
&lt;p&gt;you may want something like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;totalinfoArray = split(DBcon(&amp;quot;informa&amp;quot;), &amp;quot;;&amp;quot;) &lt;br /&gt;count = 0&lt;br /&gt;for i=0 to UBound(totalinfoArray)&lt;br /&gt;&amp;nbsp; infoArray(i) = split(totalinfoArray(i), &amp;quot;,&amp;quot;)&lt;br /&gt;next&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
your info would look like this in the arrays:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;given in DB:&lt;br /&gt;text1,text2,text3;text4,text5,text6;text7,text8,text9;text10,text11,text12;&lt;br /&gt;&lt;br /&gt;in arrays:&lt;br /&gt;+-----------+--------+--------+--------+&lt;br /&gt;| infoArray | (x)(0) | (x)(1) | (x)(2) |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; (0)(x) |&amp;nbsp; text1 |&amp;nbsp; text2 |&amp;nbsp; text3 |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; (1)(x) |&amp;nbsp; text4 |&amp;nbsp; text5 |&amp;nbsp; text6 |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; (2)(x) |&amp;nbsp; text7 |&amp;nbsp; text8 |&amp;nbsp; text9 |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; (3)(x) | text10 | text11 | text12 |&lt;br /&gt;+-----------+--------+--------+--------+&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
so...&lt;br /&gt;
infoArray(0)(0) = &quot;text1&quot;&lt;br /&gt;
infoArray(0)(1) = &quot;text2&quot;&lt;br /&gt;
infoArray(2)(2) = &quot;text9&quot;&lt;br /&gt;
(just read it like that grid in algebra and geometry, cartesan plain or however its spelled)&lt;/p&gt;
&lt;p&gt;(for the table above, UBound(infoArray) will return 3, LBound(infoArray) will return 0)&lt;/p&gt;
&lt;p&gt;If I didn&#039;t get your question right, just strangle the guy next to you then ask again. Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 Jan 2001 22:24:23 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1076596 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
