<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038510" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038510</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1220153</link>
    <description> &lt;p&gt;That&#039;s cool.  I appreciate your attempt, even if we didn&#039;t figure it out.&lt;/p&gt;
&lt;p&gt;This feature is supposed to be added in the next update release, but I got the impression that was coming &quot;whenever&quot;, and there were several people on the support forum looking for a fix &lt;em&gt;now&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;When I have time, there are some other places in the script where the author accesses this data... but like I said, with the TemplatePower crap and the lack of documentation, I&#039;ll be hard pressed to find the right file, much less be able to figure out the code.&lt;/p&gt;
&lt;p&gt;Thanks, again, for the help, and for the book recommendation.  As soon as I can, I&#039;ll check into it (still reading my last HTML/CSS book right now).&lt;/p&gt;
&lt;p&gt;R/L&lt;/p&gt;
 </description>
     <pubDate>Wed, 06 Jun 2007 16:35:32 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1220153 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1220064</link>
    <description> &lt;p&gt;Yeah dude, I&#039;m out. I have no idea what&#039;s going on with your script. All I can say is good luck. And get that book I recommended, once you&#039;re done, you&#039;ll be writing your own content management system. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Jun 2007 22:54:05 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1220064 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1220063</link>
    <description> &lt;p&gt;Have we abandoned all hope here?&lt;/p&gt;
&lt;p&gt;(Just checking...)&lt;/p&gt;
&lt;p&gt;R/L&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Jun 2007 22:44:32 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1220063 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219751</link>
    <description> &lt;p&gt;The structure of the database table is:&lt;/p&gt;
&lt;p&gt;............ratingwarning&lt;br /&gt;
rid...rating...|....warningtext&lt;br /&gt;
..1.....K........0....K (All Ages)  The subject matter and material in t...&lt;br /&gt;
..2.....K+......0....K+ (Older Kids)  The subject matter and material i...&lt;br /&gt;
..3.....T........0....T (Teens)  The subject matter and material in this...&lt;br /&gt;
..4.....YA.....3....YA (Young Adult)  The subject matter and material ...&lt;br /&gt;
..5.....R........7....R (Restricted)  The subject matter and material in...&lt;br /&gt;
..6.....M.......7....M (Mature)  The subject matter and material in thi...&lt;/p&gt;
&lt;p&gt;and we&#039;re using the &lt;strong&gt;dbquery&lt;/strong&gt; function to create an associative array where $rating[&#039;rid&#039;] is associated with the &#039;rid&#039; column of the first row, and $rating[&#039;rating&#039;] is associated with the &#039;rating&#039; column of the first row, and the other columns are ignored.  Seems to me that we&#039;re only reading the first row...&lt;/p&gt;
&lt;p&gt;...but your test loop read all the rows...&lt;/p&gt;
&lt;p&gt;... is that right?&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 May 2007 22:56:36 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1219751 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219730</link>
    <description> &lt;p&gt;Include file &lt;strong&gt;queries.php&lt;/strong&gt;&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: #FF8000&quot;&gt;// Default query strings used throughout the script.&amp;nbsp; You may need to alter these to bridge to other scripts or databases.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;define &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;_UIDFIELD\&quot;, \&quot;author.uid\&quot;);&amp;nbsp; // Do not change the aliasing (the \&quot;author.\&quot; part)!&lt;br /&gt;define (\&quot;_PENNAMEFIELD\&quot;, \&quot;author.penname\&quot;);&amp;nbsp; // Do not change the aliasing (the \&quot;author.\&quot; part)!&lt;br /&gt;define (\&quot;_EMAILFIELD\&quot;, \&quot;author.email\&quot;);&amp;nbsp; // Do not change the aliasing (the \&quot;author.\&quot; part)!&lt;br /&gt;define (\&quot;_PASSWORDFIELD\&quot;, \&quot;author.password\&quot;); //&amp;nbsp; Do not change the aliasing (the \&quot;author.\&quot; part)!&lt;br /&gt;define (\&quot;_AUTHORTABLE\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_authors as author\&quot;); // Do not change the aliasing (the \&quot;as author\&quot; part)!&lt;br /&gt;&lt;br /&gt;define (\&quot;_STORYQUERY\&quot;,&amp;nbsp; \&quot;SELECT stories.*, \&quot;._PENNAMEFIELD.\&quot; as penname, UNIX_TIMESTAMP(stories.date) as date, UNIX_TIMESTAMP(stories.updated) as updated&amp;nbsp; FROM (\&quot;._AUTHORTABLE.\&quot;, \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_stories as stories) WHERE \&quot;._UIDFIELD.\&quot; = stories.uid AND stories.validated &amp;gt; 0 \&quot;);&lt;br /&gt;define (\&quot;_STORYCOUNT\&quot;, \&quot;SELECT count(sid) FROM \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_stories as stories WHERE validated &amp;gt; 0\&quot;);&lt;br /&gt;define (\&quot;_SERIESQUERY\&quot;, \&quot;SELECT series.*, \&quot;._PENNAMEFIELD.\&quot; as penname FROM \&quot;._AUTHORTABLE.\&quot;, \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_series as series WHERE \&quot;._UIDFIELD.\&quot; = series.uid \&quot;);&lt;br /&gt;define (\&quot;_SERIESCOUNT\&quot;, \&quot;SELECT COUNT(seriesid) FROM \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_series as series \&quot;);&lt;br /&gt;define (\&quot;_MEMBERLIST\&quot;, \&quot;SELECT count( stories.sid ) as stories, \&quot;._PENNAMEFIELD.\&quot; as penname, \&quot;._UIDFIELD.\&quot; as uid FROM \&quot;._AUTHORTABLE.\&quot; LEFT JOIN \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_authorprefs AS ap ON \&quot;._UIDFIELD.\&quot; = ap.uid LEFT JOIN \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_stories AS stories ON stories.validated &amp;gt; 0 AND (FIND_IN_SET(\&quot;._UIDFIELD.\&quot;, stories.coauthors) &amp;gt; 0 OR stories.uid = \&quot;._UIDFIELD.\&quot;) \&quot;);&lt;br /&gt;define (\&quot;_MEMBERCOUNT\&quot;, \&quot;SELECT COUNT(DISTINCT \&quot;._UIDFIELD.\&quot;) FROM \&quot;._AUTHORTABLE.\&quot; LEFT JOIN \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_stories as stories ON stories.validated &amp;gt; 0 AND (FIND_IN_SET(\&quot;._UIDFIELD.\&quot;, stories.coauthors) &amp;gt; 0 OR stories.uid = \&quot;._UIDFIELD.\&quot;)&amp;nbsp; LEFT JOIN \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tableprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_authorprefs as ap ON \&quot;._UIDFIELD.\&quot; = ap.uid\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Reviewing the _STORYQUERY line above, I don&#039;t see any reference to the ratings id field (listed in the database as &lt;strong&gt;rid&lt;/strong&gt;).  That seems, at least to me, to be a problem...&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 May 2007 12:51:24 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1219730 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219729</link>
    <description> &lt;p&gt;Yes, that&#039;s what I get... (you&#039;ll note the fiction archive uses K, K+, T, YA, R &amp;amp; M instead of the standard movie ratings):&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: rating id 1rating string Krating id 2rating string K+rating id 3rating string Trating id 4rating string YArating id 5rating string Rrating id 6rating string M&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Changing the output line to reference &lt;strong&gt;$rating[&#039;rating&#039;]&lt;/strong&gt; gives this output:&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Action Stations!&lt;br /&gt;
Set Condition One throughout the ship!&lt;/p&gt;
&lt;p&gt;Obstinate Tin Soldier by Chris Taylor [Rated: (5)]&lt;/p&gt;
&lt;p&gt;Boomer is resurrected on a Cylon ship and struggles to keep her identity and continue fighting the war.&lt;/p&gt;
&lt;p&gt;Published Tue, 22 May 2007 21:11:30 -0500&lt;/p&gt;
&lt;p&gt;Chronicles of a Sniper by GoldWolf [Rated: K(1)]&lt;/p&gt;
&lt;p&gt;The story of one resistance fighter on Caprica, and then later on New Caprica.&lt;/p&gt;
&lt;p&gt;Published Tue, 01 May 2007 07:46:38 -0500&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;As you can see, Chris&#039; story shows the correct index (5) for his &#039;R&#039; rating, but the rating string itself does not appear, while GoldWolf&#039;s story shows the right index as well as the &#039;K&#039; rating string.&lt;/p&gt;
&lt;p&gt;We&#039;re close here... we just need to find out why the indexing isn&#039;t working inside the while loop.  It may have something to do with that _STORYQUERY variable, so I&#039;ll check that out and post it.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
R/L&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 May 2007 12:44:45 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1219729 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219713</link>
    <description> &lt;p&gt;Ok, I am totally confused. Let me make sure we&#039;re on the same page.&lt;/p&gt;
&lt;p&gt;When you run this code,&lt;br /&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: #FF8000&quot;&gt;// I changed the function dbrow to dbassoc from my original code&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ratingsresults &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;dbquery&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT rid, rating FROM \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$settingsprefix&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;fanfiction_ratings\&quot;);&lt;br /&gt;&lt;br /&gt;while(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ratings&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = dbassoc(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ratingsresults&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo \&quot;rating id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ratings&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;rid&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]}&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo \&quot;rating string &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ratings&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;rating&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]}&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;} &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
you get something like &lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
rating id 1 rating string P rating id 2 rating string PG rating id 3 rating string PG-13
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Do you get something like that output? Yes or no?&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 May 2007 19:52:41 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1219713 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219712</link>
    <description> &lt;p&gt;Before trudging off in search of _STORYQUERY, I decided to take a look at the ratings one more time... the only array element that seems to contain anything is $ratings[1].  Are we missing an array declaration, or is there something else wrong?&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 May 2007 19:06:22 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1219712 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219711</link>
    <description> &lt;p&gt;OK, no syntax error, but the output gave me the zero character...  I&#039;ll track down _STORYQUERY and see what I can find.&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 May 2007 18:57:21 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1219711 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-data-sql-php-variable#comment-1219710</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;teammatt3;219709 wrote:&lt;/strong&gt; Man, I&#039;m a nice guy &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You are, and your help is greatly appreciated.&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 May 2007 18:49:20 +0000</pubDate>
 <dc:creator>RangerLord</dc:creator>
 <guid isPermaLink="false">comment 1219710 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
