Re: RTFM
| From: | sundogcurt | Date: | Sat, 19 Jan 2002 18:38:20 +0000 |
| Subject: | Re: RTFM | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81234@lists.php.net to get a copy of this message | ||
I would be more than happy to put some mini-tutorials together to send you, I'm not sure of the relevance of them though. Maybe adding a "suggest a tut" area where people that are having trouble can request a tutorial and anybody interested can fire one in?
Just a thought
~Curt~
matt@epooch.com wrote:
I've actually been working on just that. I've been reading this list for a long time and noticed the repetition. I have 65+ faqs on my site http://www.php-faq.com/ that are there basically from my own experiences. I haven't posted it yet, because I don't think it's "full" enough. It even has a suggest-a-faq page, that'd I'd need to activate. I do like your idea of mini-tutorials. I have a lot of programming experience (12+ years), mostly in business applications, and know what it's like to struggle. The mailing list is awesome; I've never really posted a question because the answers are in the archive. ----- Original Message ----- From: "sundogcurt" <sundogcurt@netscape.net> To: "GENERAL PHP LIST" <php-general@lists.php.net> Sent: Saturday, January 19, 2002 12:56 PM Subject: Re: [PHP] RTFMI've been (sorta) following this thread for the last little while and I have to say that I'm on the side of "one list for all!". The problem with splitting the list is the different levels of "newbie-ism" on different subjects, There are things that advanced users can learn from new comers to the language too. For instance. I don't really consider myself a "total newb" when it comes to PHP anymore, but there are areas of the language that I still haven't touched upon, which would make me a newbie. I agree though that some questions are asked a little too often, and that could be due to unclear documentation. If it is bothersome to you, write a nice simple tutorial and post it! For example, quite often I see people ask how to INSERT multiple values from one selectbox. I have yet to see anybody post any help save for telling people to use checkboxes instead. Using a selectbox for this isn't all that difficult at all! <mini tutorial> file://FIRST YOU START WITH A SELECTBOX <select name="selectpackage[]" multiple> file://NOTE THE "[]" AT THE END OF THE NAME FOR THE SELECTBOX, ONCESUBMITTEDTHIS WILL BE TREATED AS AN ARRAY CONTAINING THE SELECTED VALUES. file://THE "MULTIPLE" STATEMENT ALLOWS THE USER TO SELECT MULTIPLE OPTIONS INSTEAD OF JUST ONE. <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> </select> /////////////////// AFTER THE FORM IS SUBMITTED /////////////////// file://GET A COUNT ON THE NUMBER OF ENTRIES SELECTED$mycount = count($selectpackage);file://USE THE RESULT FOR A COUNTERwhile($mycount){ $mycount--;file://RUN YOUR INSERT COMMAND UNTIL THE COUNTER HAS EXPIREDmysql_query("INSERT INTO mytable (myvalue1,myvalue2) VALUES('$selectpackage[$mycount]', '$mycount')");}</mini tutorial> Maybe some of use should get together and start putting things like this in a repository with an easy flexible search. I know from experience that some of the documentation that is available to new users is a bit on the stuffy side. Sometimes a better approach is to give up some "starter code" and let them go from there. Just my two cents worth and a mini tutorial that can be used to get things started. Now if you'll excuse me, I have to continue banging my forehead on my keyboard figuring out this "%$#%$#@" file upload. (C: We all benefit from "new and used" users alike. ~Curt~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net