<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024175" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024175</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149332</link>
    <description> &lt;p&gt;Fixed!  There was a small typo in the code you gave me.&lt;br /&gt;
This:&lt;br /&gt;
$makerandomid = rand(10000,99999));&lt;br /&gt;
Should have been this:&lt;br /&gt;
$makerandomid = rand(10000,99999);&lt;br /&gt;
Thanks for your help!!!&lt;/p&gt;
 </description>
     <pubDate>Sat, 10 Apr 2004 15:54:04 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1149332 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149326</link>
    <description> &lt;p&gt;try:&lt;br /&gt;
while (true)&lt;/p&gt;
 </description>
     <pubDate>Sat, 10 Apr 2004 14:19:45 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1149326 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149286</link>
    <description> &lt;p&gt;Those changes are correct, but I still get a parse error.  I think that maybe I&#039;m putting the code in the wrong place or something.  Here is what it looks like now:&lt;/p&gt;
&lt;p&gt;&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;if(isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$create&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//if the system is public, set some cookies so user information will be recorded for next time&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;setcookie&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;cookie_user_name\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, time()+31536000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie(\&quot;cookie_email\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, time()+31536000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie(\&quot;cookie_office\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$office&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, time()+31536000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie(\&quot;cookie_phone\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$phone&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, time()+31536000);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = time() + (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time_offset&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;*3600);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;while(1) &lt;br /&gt;{ &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$makerandomid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = rand(10000,99999)); &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$q&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_query(\&quot;SELECT id FROM &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mysql_tickets_table&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; WHERE id = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$makerandomid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;);&lt;br /&gt;&lt;br /&gt;if(mysql_num_rows(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$q&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) &amp;lt; 1) &lt;br /&gt;{ &lt;br /&gt;break; &lt;br /&gt;} &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$group&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == &#039;&#039; || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$priority&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == &#039;&#039; || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == &#039;&#039; || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == &#039;&#039;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header(\&quot;Location: index.php?t=terr\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$short&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == &#039;&#039;){&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; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$short&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lang_nodesc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sg&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == &#039;&#039;){&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; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sg&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$status&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = getStatus(getLowestRank(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mysql_tstatus_table&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; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$short&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = addslashes(stripScripts(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$short&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; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = addslashes(stripScripts(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;INSERT into &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mysql_tickets_table&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; values(&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$makerandomid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sg&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &#039;Division&#039;, 1, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$priority&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$status&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;,&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$office&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$phone&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$category&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$platform&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$short&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, NULL, 0, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&#039;&lt;br /&gt;)\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 16:43:35 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1149286 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149285</link>
    <description> &lt;p&gt;I&#039;m assuming the primary key of the table is &quot;id&quot;... so replace with:&lt;/p&gt;
&lt;p&gt;$q = mysql_query(&quot;SELECT id FROM $mysql_tickets_table WHERE id = $makerandomid&quot;);&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 16:20:18 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1149285 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149264</link>
    <description> &lt;p&gt;Below is an entire section from the script that creates the ticket and its ID.  I received an error that says: Parse error: parse error in /hidden/support/tcreate.php on line 68.  Line 68 is where the while(1) statement is.  (Notice I changed $id to $makerandomid to stop confusing with other $id&#039;s in the file.&lt;/p&gt;
&lt;p&gt;REMOVED&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 05:37:02 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1149264 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149252</link>
    <description> &lt;p&gt;values(&#039;$id&#039;, &#039;$time&#039;&lt;/p&gt;
&lt;p&gt;If you still get an error, copy &amp;amp; paste your entire code segment here (with info about the error your getting).&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 03:00:43 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1149252 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149227</link>
    <description> &lt;p&gt;I get a parse error.  Anything wrong with that code you gave me?&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 00:10:34 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1149227 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149222</link>
    <description> &lt;p&gt;swap out NULL for &#039;$id&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Apr 2004 23:30:26 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1149222 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149215</link>
    <description> &lt;p&gt;I believe this is where the ID is created:&lt;/p&gt;
&lt;p&gt;$sql = &quot;INSERT into $mysql_tickets_table values(&lt;del&gt;&lt;strong&gt;NULL&lt;/strong&gt;&lt;/del&gt;, &#039;$time&#039;, $sg, &#039;$division&#039;, 1, &#039;$priority&#039;, &#039;$status&#039;,&#039;$username&#039;, &#039;$email&#039;, &#039;$office&#039;, &#039;$phone&#039;, &#039;$category&#039;, &#039;$platform&#039;, &#039;$short&#039;, &#039;$description&#039;, NULL, 0, &#039;$time&#039;, &#039;&#039;&lt;/p&gt;
&lt;p&gt;Where the NULL is above (the first one) is where I think it is.  Like I said the database automatically increments the ID now.  &lt;/p&gt;
&lt;p&gt;How can i place the random ID Code there?&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Apr 2004 23:20:19 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1149215 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/random-number-mysql#comment-1149212</link>
    <description> &lt;p&gt;I&#039;m having trouble finding where to put that code.  Right now I believe the php sends a null command to mysql and mysql automatically increments the number.&lt;/p&gt;
&lt;p&gt;Anyone have an idea or possible look of where it would go?&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Apr 2004 22:45:26 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1149212 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
