<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022287" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022287</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137601</link>
    <description> &lt;p&gt;no i didn&#039;t...lol&lt;/p&gt;
&lt;p&gt;i thought since i included the $ tags inside the print(&#039; &#039;) (which i had the whole table inside) that it would automatically interpret, since i didn&#039;t use the &quot;amperstand&quot; symbol for the dollar sign (&amp;#36;).&lt;/p&gt;
&lt;p&gt;thanks for dealing with me.  lol.&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 Sep 2003 00:29:50 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1137601 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137546</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by nike_guy_man &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;?=&lt;/strong&gt; means open, then echo, right? [/B]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Ya, that&#039;s one of the ideas they stole from ASP. &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;
 </description>
     <pubDate>Wed, 10 Sep 2003 08:01:15 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1137546 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137536</link>
    <description> &lt;p&gt;Uhm... you know you have to open a PHP tag before it&#039;ll print that instead of $may29morn1 right?&lt;br /&gt;
It has to be either&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: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$may29morn1&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;br /&gt;
or the much easier&lt;br /&gt;
&lt;strong&gt;&amp;lt;?=$may29morn1 ?&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;?=&lt;/strong&gt; means open, then echo, right?&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Sep 2003 02:58:19 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1137536 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137535</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://guards.dscpool.com&quot; class=&quot;bb-url&quot;&gt;http://guards.dscpool.com&lt;/a&gt; is the basic idea, not the finalized design, but the basic idea/premise&lt;/p&gt;
&lt;p&gt;the php file that is includes-ed is as follows:&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;$connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost\&quot;, \&quot;...\&quot;, \&quot;...\&quot;) or die (&#039;Database failure: &#039; . mysql_error(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbh&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));&lt;br /&gt;mysql_select_db (\&quot;...\&quot;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$get&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(\&quot;SELECT * FROM may\&quot;);&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$get&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;$info&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_fetch_assoc(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$get&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;echo \&quot;Error:\&quot; . mysql_error();&lt;br /&gt;}&lt;br /&gt;mysql_close(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$connect&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Sep 2003 02:10:14 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1137535 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137527</link>
    <description> &lt;p&gt;This is direct from one of my pages&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;## Connection info ##&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$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 users \&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_query(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&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;$row&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_assoc(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;} else {&lt;br /&gt;echo \&quot;Error \&quot; . mysql_error();&lt;br /&gt;}&lt;br /&gt;echo \&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;name&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;mysql_close();&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
I have no idea where I came up with the variables query result and row...  i&#039;ve been doing it that way for 3 years now...&lt;br /&gt;
A link and a .phps file would be nice so we could see what you are doing... put the dbase connection info on another page and include it so we don&#039;t see that....&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Sep 2003 23:31:22 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1137527 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137476</link>
    <description> &lt;p&gt;lol...i&#039;d have to say it still doesn&#039;t work.&lt;/p&gt;
&lt;p&gt;i removed &quot;set&quot; and i changed all the &quot;table fields&quot; to the corressponding values.  i have tried two ways:&lt;br /&gt;
#1-  just having the file name .php and the only php inside it is the includes and echo (so, its &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...echo&amp;nbsp; &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;
&lt;p&gt;#2-  having &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; start after the body tag&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;the code &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;includes &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;echos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;then having a &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;table....&#039;&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;
&lt;p&gt;neither works.  i also tried adding $ to the echo statement in front of the table field ($info[$may29morn1])...i&#039;m not getting any error statements either...argh gagagagagah (Popeye quote...lol)&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Sep 2003 01:47:10 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1137476 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137417</link>
    <description> &lt;p&gt;Idiot mistake #2: remove &quot;SET&quot;&lt;br /&gt;
Table field is the name of the table field... in tihs case, $info[may29morn1]&lt;/p&gt;
 </description>
     <pubDate>Sun, 07 Sep 2003 15:52:22 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1137417 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137415</link>
    <description> &lt;p&gt;ok i&#039;ve got a question...what do you mean by &quot;table field&quot;?  when run the script saying &quot;table field&quot; (even though i know thats not what it should say), I get an error that says I should look for the proper syntax near &quot;SET&quot; and &quot;table field&quot;.  thanks&lt;/p&gt;
 </description>
     <pubDate>Sun, 07 Sep 2003 15:18:59 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1137415 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137400</link>
    <description> &lt;p&gt;Sigh... i&#039;m an idiot&lt;br /&gt;
Move the mysql_close(); to the end of the loop&lt;/p&gt;
 </description>
     <pubDate>Sun, 07 Sep 2003 02:24:42 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1137400 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-values-mysql#comment-1137399</link>
    <description> &lt;p&gt;Well for one thing you aren&#039;t executing the $get, so that&#039;s why&lt;br /&gt;
Just do it like this:&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;PHP&lt;br /&gt;$connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost\&quot;, \&quot;...\&quot;, \&quot;...\&quot;) or die (&#039;Database failure: &#039; . mysql_error(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbh&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));&lt;br /&gt;mysql_select_db (\&quot;...\&quot;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$get&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(\&quot;SELECT * FROM may SET \&quot;);&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$get&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;$info&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_assoc(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$get&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;mysql_close;&lt;br /&gt;} else {&lt;br /&gt;echo \&quot;error \&quot; . mysql_error();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;**other page**&lt;br /&gt;&lt;br /&gt;include(&#039;otherpage.php&#039;);&lt;br /&gt;echo \&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$info&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; field]\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
That&#039;s how I do it....&lt;/p&gt;
 </description>
     <pubDate>Sun, 07 Sep 2003 02:23:59 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1137399 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
