<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017394" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017394</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101665</link>
    <description> &lt;p&gt;If it is a design problem, then it is HTML not PHP. Now the PHP is being parsed into the HTML incorrectly causing the layout problems. I usually write the site in HTML and test it, then go ahead and cut it into pieces with includes and database inserts. If you are still having problems, view the problem page in your browser and then view the source, copy the source into your HTML editor and try to see what is going wrong.&lt;/p&gt;
&lt;p&gt;As far as learning PHP, I would have to agree with Mark on this one. Getting your hands down into the code is the only way to learn. The tutorial sites along with PHPBuilder.com, Zend, Devshed and WeberDev are great but have you noticed how many different ways people write code. Some are quite sloppy and inconcise. Here is an example. Say I want to test a variable called X and if that variable is true I want to print out a table containing an error message. Well here is how most would do so:&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;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;br /&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;table&amp;gt;\n\&quot;;&lt;br /&gt;echo \&quot;&amp;lt;tr&amp;gt;\n\&quot;;&lt;br /&gt;echo \&quot;&amp;lt;td bgcolor=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FF9900&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;&amp;lt;H3&amp;gt;Error Message&amp;lt;/H3&amp;gt;&amp;lt;/td&amp;gt;\n\&quot;;&lt;br /&gt;echo \&quot;&amp;lt;/tr&amp;gt;\n\&quot;;&lt;br /&gt;echo \&quot;&amp;lt;/table&amp;gt;\n\&quot;;&lt;br /&gt;}&lt;br /&gt;else ... &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Now when you use all those echos, it is kind of hard to write and you get parsing errors if you forget to escape a &quot; or close the line with a ;.&lt;/p&gt;
&lt;p&gt;So the easier way to do it is:&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;if &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;td bgcolor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;FF9900\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;H3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Error Message&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;H3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;else ...&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;The key is using the { . The first one makes all of the HTML after it still conditional but without the echos. The second one } closes the conditional til the another conditional picks it up. Cleans up the code a bit.&lt;/p&gt;
 </description>
     <pubDate>Fri, 15 Feb 2002 02:40:38 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1101665 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101662</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Suzanne, remember the page that I was asking y&#039;all to look at a few days ago? The pages loaded up fine for you in Opera, but I had a cache retaining problem on 2 links? &lt;/p&gt;
&lt;p&gt;Well, in PHP~It&#039;s a table page with &quot;menu.html&quot; on the left and &quot;main.html&quot; on the right. I cannot get it to call up the pages correctly. I can have the &quot;menu.html&quot; page and pull in another page, but the main page is a picture of Greg and I and it will not center, it goes way down below the menu links. I don&#039;t know how to make the tables do what I want them to! None of the pages look correct.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Okay, here&#039;s what you do. Open a new thread for this, of course. Save your files that are .php files as .phps files ( same file, new extension). Upload the .phps files so we can see both what it looks like through the browser and what the coding looks like that gets parsed.&lt;/p&gt;
&lt;p&gt;That will help people find where things are going wrong.&lt;/p&gt;
&lt;p&gt;&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; Suzanne&lt;/p&gt;
&lt;p&gt;P.S. php.net is very helpful, but having someone show you where you&#039;re going wrong can leap frog you along.&lt;/p&gt;
 </description>
     <pubDate>Fri, 15 Feb 2002 01:58:38 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1101662 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101658</link>
    <description> &lt;p&gt;Trial &amp;amp; Error..&lt;br /&gt;
Head under the Hood...&lt;/p&gt;
&lt;p&gt;Become very acquanted with &lt;a href=&quot;http://php.net&quot; class=&quot;bb-url&quot;&gt;http://php.net&lt;/a&gt;.  Tuts only go so far, then the rest of your learning comes from hands on, and the manual.  ...and of course, TWF! &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;
&lt;p&gt;Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Feb 2002 23:42:55 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1101658 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101645</link>
    <description> &lt;p&gt;Busy, I have heaps of wisdom then! *LOL*&lt;br /&gt;
Thanks for the links. &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;
&lt;p&gt;Sara&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Feb 2002 22:42:40 +0000</pubDate>
 <dc:creator>DC_Sara</dc:creator>
 <guid isPermaLink="false">comment 1101645 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101636</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.phpwizard.net/resources/tutorials&quot; class=&quot;bb-url&quot;&gt;http://www.phpwizard.net/resources/tutorials&lt;/a&gt;&lt;br /&gt;
and&lt;br /&gt;
&lt;a href=&quot;http://www.worldzone.net/computers/kjkoruth/contents.php3&quot; class=&quot;bb-url&quot;&gt;http://www.worldzone.net/computers/kjkoruth/contents.php3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;are a couple I&#039;ve used, heaps of PHP tuts out there, just do a search for PHP on your favorite search engine, then once you feel confortable with the language start looking through the manual, if you go straight to the manuel you&#039;ll get lost for sure.&lt;/p&gt;
&lt;p&gt;I hunted around for a while trying to find intermediate tuts for PHP but seems most are for beginners: print &quot;hello world&quot;. Tech books here are $200+ so isnt an option, so if you or anyone else knows of or finds any other PHP tuts I&#039;d be interested too.&lt;/p&gt;
&lt;p&gt;**best way to learn is from your mistakes**&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Feb 2002 21:26:40 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1101636 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101631</link>
    <description> &lt;p&gt;Hey Webmistress! This is where I started, once I figured this out, I had it! &lt;a href=&quot;http://zalary.com/substance/phptutorial/&quot; class=&quot;bb-url&quot;&gt;PHP Tut&lt;/a&gt; Thanks for the compliment...I just had to sit down and take the time to learn it. I don&#039;t think I am well versed enough to help you, but I will tell you what doesn&#039;t work! HAHA!&lt;/p&gt;
&lt;p&gt;Suzanne, remember the page that I was asking y&#039;all to look at a few days ago? The pages loaded up fine for you in Opera, but I had a cache retaining problem on 2 links? &lt;/p&gt;
&lt;p&gt;Well, in PHP~It&#039;s a table page with &quot;menu.html&quot; on the left and &quot;main.html&quot; on the right. I cannot get it to call up the pages correctly. I can have the &quot;menu.html&quot; page and pull in another page, but the main page is a picture of Greg and I and it will not center, it goes way down below the menu links. I don&#039;t know how to make the tables do what I want them to! None of the pages look correct.&lt;/p&gt;
&lt;p&gt;I have a top menu java script I&#039;m totally thinking about using for right now as I slowly learn all about PHP and SSI.&lt;/p&gt;
&lt;p&gt;Any tuts on SSI? I finally have the brain power to tackle these things. HA! Took forever!&lt;/p&gt;
&lt;p&gt;Thanks, &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;
&lt;p&gt;Sara&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Feb 2002 19:29:43 +0000</pubDate>
 <dc:creator>DC_Sara</dc:creator>
 <guid isPermaLink="false">comment 1101631 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101624</link>
    <description> &lt;p&gt;What are you trying to do? PHP can only write what you tell it to write, so like Perl or JavaScript, or ASP, or or or, you would have to tell it to write out things.&lt;/p&gt;
&lt;p&gt;But yes, it will create a table for you if you tell it to. &lt;/p&gt;
&lt;p&gt;Ideally, I find writing the table FIRST, then using that code and wrapping PHP instructions around various pieces, works best.&lt;/p&gt;
&lt;p&gt;As for tutorials, I don&#039;t know of any, hopefully someone else does.&lt;/p&gt;
&lt;p&gt;For the ones I use, I set a column and/or row variable, a way to display empty cells, and then have a data file or database that gets the information. The script then builds the table based on the information in the data file or database.&lt;/p&gt;
&lt;p&gt;I use a perl version here --&amp;gt; &lt;a href=&quot;http://www.zerocattle.com/examples/gallery.html&quot; class=&quot;bb-url&quot;&gt;zerocattle.com/examples/gallery.html&lt;/a&gt; . The cells for the images is written in Perl. In this case, there is no limit on the number of columns because I wanted it to scroll horizontally. I have another script kicking around somewhere that does rows and columns.&lt;/p&gt;
&lt;p&gt;Anyway, my point is that this is a good project for learning PHP. Reason it out and try to do it yourself and you&#039;ll learn a lot. That&#039;s how I started learning Perl.&lt;/p&gt;
&lt;p&gt;&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; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Feb 2002 18:45:47 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1101624 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Well done you!</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-table-layout-was-php-ahhhhhhhhhhh#comment-1101623</link>
    <description> &lt;p&gt;I don&#039;t know the answer I&#039;m afraid as I have been putting off learning php! I just wanted to say well done. I have to start in the next month or so. I&#039;ll be coming to you for tips on where to start &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>Thu, 14 Feb 2002 18:45:03 +0000</pubDate>
 <dc:creator>The Webmistress</dc:creator>
 <guid isPermaLink="false">comment 1101623 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
