I have been working the past 2 weeks on creating a family chat room on our local area network (LAN). Basically anybody that is within our LAN can write there name and a comment. I have made my laptop the localhost (127.0.0.1) using apache2 and I have created a database using MySQL. In this time I have been learning SQL to operate databases and PHP (a server side scripting language to send and retrieve data from a database).
Java posting to PHP results in PHP being a blank $_POST param.
The issue here is that Apache changes everything to be GET if a trailing slash is not found -- and therefore is losing the entire payload.
Answer thank god found on stack overflow.
Here are some of my ideas when to use for, foreach and while.
- We can use for loop when you are dealing with more logical approach of iterations or you know the size of the array or the number of iteration.
- Foreach can be used more on data retrieval or data display (data retrieved from database).
My name is Ben Wu and I work with the Marketing Services engineering team.
The Marketing Services team at Chegg is very innovative and creative in reaching out to our Students and engaging them with fun stuff. We have partnered a number of times with different brands to engage our student users in various fun contests. We discovered that the most effective way to handle these contests was by building microsites for hosting these various competitions.
A few weeks ago, I read about Top Craft Blogs by Moms and from there, I somehow came to land (and totally adored) this post from Hellobee. It's one of those projects that makes me say, "I had to try that!" And try it I did.
When I was gathering the materials, I realized I had one major problem: …
PHP is very nice and lovely programming language, if you work with other people having good code is important.
Comment & Document
- Comments are very important because people understand why you are using certain function or block of code.
- So adding comments above section of code should be better. After providing document of that code that is really nice.
Give Meaningful names into Variables, Functions and Classes…
PHP & MySQL: Hands-on guide that will help you build your first database driven website. In the fifth edition of this best-selling book, you'll learn how to use PHP (used on 20 million sites worldwide) to build your own working content management system using entirely free software.
For more information http://bit.ly/1aBN4Zk