<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 25, 2013 6:54 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 25, 2013 6:54 am</pubDate>
  <lastBuildDate>Sat May 25, 2013 6:54 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29531#29531</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2326'&gt;ollie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 14, 2006 10:39 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I have taught PHP - MySQL for a number of years and the best text book is PHP and MySQL Web Development by Laura Thomson &amp;amp; Luke Welling. It's now in third edition and you have to put up with US spelling, even though it is written by two Australians  &lt;img src=&quot;images/smiles/icon_confused.gif&quot; alt=&quot;Confused&quot; border=&quot;0&quot; /&gt;  , and deals with creating and editing text files using PHP.&lt;br /&gt;
&lt;br /&gt;
There would be nothing wrong with using PHP to edit the file containing the list to remove the radio button in the code. It might be a bit of work but careful planning and the use of variables would avoid having to setup a database to manage this.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29531#29531</comments>
                                        <author>ollie</author>
                                        <pubDate>Mon Aug 14, 2006 10:39 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29531#29531</guid>
                                      </item>
                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29528#29528</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 14, 2006 10:17 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I use Professional PHP Programming from Wrox. I've had it several years, so it's a bit out of date now but I expect there's an updated version. I had all I needed on MySQL as well as PHP.&lt;br /&gt;
&lt;br /&gt;
But I think an SQL database is overkill for a simple item list, a text file should do.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29528#29528</comments>
                                        <author>nelz</author>
                                        <pubDate>Mon Aug 14, 2006 10:17 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29528#29528</guid>
                                      </item>
                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29526#29526</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=12'&gt;andychannelle&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 14, 2006 10:05 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      My fears confirmed. Thanks for the advice. I'll get a book on MySQL/PHP...&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29526#29526</comments>
                                        <author>andychannelle</author>
                                        <pubDate>Mon Aug 14, 2006 10:05 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29526#29526</guid>
                                      </item>
                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29522#29522</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 14, 2006 8:47 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      You'd need a way to store the flags, which could be a database but a simple file with one item per line would do just as well. Use PHP's ereg() function to check whether each item is in the list.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29522#29522</comments>
                                        <author>nelz</author>
                                        <pubDate>Mon Aug 14, 2006 8:47 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29522#29522</guid>
                                      </item>
                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29517#29517</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 14, 2006 3:20 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Something like a conditional expression using a flag to lock it. The flag gets set if it hasn't been selected before and allows the process into the conditional to return the value. It gets unset when unselected. If the flag is set on another attempt to retrieve it, it returns with a not available message ... something along those lines. I'm thinking in C though &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
jm</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29517#29517</comments>
                                        <author>jjmac</author>
                                        <pubDate>Mon Aug 14, 2006 3:20 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29517#29517</guid>
                                      </item>
                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29512#29512</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=167'&gt;nordle&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 14, 2006 12:11 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Just to throw a couple of things, the database could be sqlite or java hsqldb so its really tiny.&lt;br /&gt;
&lt;br /&gt;
But also, could you (if there are not too many) not store the values in a simple .txt file, then just do some text file manipulation via php?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29512#29512</comments>
                                        <author>nordle</author>
                                        <pubDate>Mon Aug 14, 2006 12:11 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29512#29512</guid>
                                      </item>
                                      <item>
                                        <title>Re: Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29509#29509</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5312'&gt;TheDoctor&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Aug 13, 2006 8:23 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      A few basics to guide you to the right answer (in the spirit of teaching a man to fish):&lt;br /&gt;
&lt;br /&gt;
- HTML is not a programming language but a markup language. That means you can't use it for processing. So it's no good for your purposes.&lt;br /&gt;
&lt;br /&gt;
- Javascript is a programmig language, but it executes on the client side - ie it runs on the user's PC. This means it is useful if you had a list and wanted the user's browser to do something special if/when they picked an item. But it can't affect anything that happens on another user's PC. So that's a no-no for you.&lt;br /&gt;
&lt;br /&gt;
- PHP is a server-side programming language, and therefore anything it does applies to all users. You could certainly use it for what you want to do, but you'd have some means of storing which items had already been chosen. Which means you're right: you're going to have to use a database as well.&lt;br /&gt;
&lt;br /&gt;
Hope this makes things clear, even if it confirms that things may mean more work than you'd hoped.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29509#29509</comments>
                                        <author>TheDoctor</author>
                                        <pubDate>Sun Aug 13, 2006 8:23 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29509#29509</guid>
                                      </item>
                                      <item>
                                        <title>Probably stupidly easy problem</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=29495#29495</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=12'&gt;andychannelle&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Aug 13, 2006 12:54 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Back in programming school, I never really got beyond HTML, and now I'm faced with a problem I just can't solve, so if any of you smart people can help me out that would be great!&lt;br /&gt;
&lt;br /&gt;
I have a list on a website and I want to set it so that once an item is selected from the list, it becomes unavailable to other visitors. Does this sound easy with HTML/Javascript/PHP/Something else or - dan dan daaaaan - will it require the use of a database?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=29495#29495</comments>
                                        <author>andychannelle</author>
                                        <pubDate>Sun Aug 13, 2006 12:54 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=29495#29495</guid>
                                      </item></channel></rss>