[advanced search]
Results from the most recent live auction are here.
16 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 06-01-2008, 11:07 AM   · #1
yilduz
NamePros Regular
 


Name: Dennis.
Location: Wisconsin
Trader Rating: (5)
Join Date: May 2008
Posts: 270
NP$: 97.00 (Donate)
yilduz is on a distinguished road
Animal Rescue
I'm learning PHP

Hey, I'm learning PHP and I've always been the kind of person that learns best by doing. I could read books and sites about it all day but it's not going to stick unless I'm doing something with it. The little tutorials people create to do minor tricks don't do much for me either, they're never in-depth enough to get me to remember it. They also rarely describe everything they're doing.

I've figured out that I learn to code best by deciding on a project to do and then doing it. For my first PHP project, I want to make a guestbook. It doesn't seem too massive, but it'll also take a bit of time and explore several techniques and abilities of the language.

My biggest problem is that I'm not sure where to start. I think I will have an excellent understanding of php because it uses a similar syntax to languages I've used before so I really don't want to go through all the nonsense like "this is a function." Does anyone know of any sites that just basically lists a bunch of php commands and a description of what they do rather than a bunch of tutorials?
Also, if anyone knows of a guestbook tutorial, that would be cool, too. I want something that goes beginning to end, though. Not just "this is how to create a function that could possibly be used in something like a guestbook."

I know guestbooks aren't popular anymore, but like I said, I'm learning php and this seems like a good project to get my feet wet with.


Please register or log-in into NamePros to hide ads
yilduz is online now   Reply With Quote
Old 06-01-2008, 12:18 PM   · #2
psalzmann
NamePros Regular
 
Trader Rating: (20)
Join Date: Feb 2006
Posts: 517
NP$: 360.80 (Donate)
psalzmann is just really nicepsalzmann is just really nicepsalzmann is just really nicepsalzmann is just really nice
Hi,

Start off by visualizing the database schema. For starters I would create a guestbook table in your database and create the basic fields:

Guestbook table
id, userid, subject, description

User table
id, userid, username, password

Then begin your PHP script by adding a few dummy articles in the guestbook table, then connect the php to your database to fetch the results using mysql_fetch_array() and then output in a nice row by row table.

Good luck!
psalzmann is offline   Reply With Quote
Old 06-01-2008, 02:18 PM   · #3
-TV-
DNOA Member
 
-TV-'s Avatar
 
Name: Tv
Location: Usa
Trader Rating: (20)
Join Date: Oct 2005
Posts: 716
NP$: 267.00 (Donate)
-TV- is just really nice-TV- is just really nice-TV- is just really nice-TV- is just really nice-TV- is just really nice
Originally Posted by yilduz
Hey, I'm learning PHP and I've always been the kind of person that learns best by doing. I could read books and sites about it all day but it's not going to stick unless I'm doing something with it. The little tutorials people create to do minor tricks don't do much for me either, they're never in-depth enough to get me to remember it. They also rarely describe everything they're doing.

I've figured out that I learn to code best by deciding on a project to do and then doing it. For my first PHP project, I want to make a guestbook. It doesn't seem too massive, but it'll also take a bit of time and explore several techniques and abilities of the language.

My biggest problem is that I'm not sure where to start. I think I will have an excellent understanding of php because it uses a similar syntax to languages I've used before so I really don't want to go through all the nonsense like "this is a function." Does anyone know of any sites that just basically lists a bunch of php commands and a description of what they do rather than a bunch of tutorials?
Also, if anyone knows of a guestbook tutorial, that would be cool, too. I want something that goes beginning to end, though. Not just "this is how to create a function that could possibly be used in something like a guestbook."

I know guestbooks aren't popular anymore, but like I said, I'm learning php and this seems like a good project to get my feet wet with.



run away while you can

just kidding, the best way to learn a language not just php , is to find small codes and run them to see result and then analyse them back again and try to MODIFY them and do some retouch or add more , that will not just teach you how to code but creativity is the best gift after you learn coding, i strongly recommand websites that have biginner php coder , dont never jump to big codes it all come step by step will be hard to deal with but once you learn how to control your nerves about fidning bugs , then you will get it

a nice place to start with source codes planetsourcecode dot com and choose php , and look for examples that others did , as i said dont jump to big codes just start small you learn faster and faster that way

Tv
-TV- is offline   Reply With Quote
Old 06-01-2008, 02:43 PM   · #4
dotbidz
NamePros Member
 
Trader Rating: (16)
Join Date: Jul 2006
Posts: 101
NP$: 0.00 (Donate)
dotbidz is an unknown quantity at this pointdotbidz is an unknown quantity at this point
The PHP User's manual is very useful to me, and I've been programming in PHP for almost 5 years now. I still use it on an almost daily basis.

http://us3.php.net/manual/en/manual.php
__________________
NameCoin.com - Free Domain Name Auctions
Buy or Sell your domain names for free!
dotbidz is offline   Reply With Quote
Old 06-01-2008, 02:43 PM   · #5
Barefoottech
The MINISITE King
 
Barefoottech's Avatar
 
Name: Mr MiniSite
Location: With my WIFE
Trader Rating: (77)
Join Date: May 2005
Posts: 3,610
NP$: 169.24 (Donate)
Barefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant futureBarefoottech has a brilliant future
Cystic Fibrosis Diabetes Breast Cancer Save a Life
__________________
http://beach-accommodation.com $75 http://insurance-premiums.info $150
ReadyBuilt.info a Minisite that Looks GREAT for only $75
Who needs AEIOU or WhyPark, http://quolls.info << only $50usd
Ringtones for every Phone and carrier
Barefoottech is online now  
  Reply With Quote
Old 06-01-2008, 02:46 PM   · #6
yilduz
NamePros Regular
 


Name: Dennis.
Location: Wisconsin
Trader Rating: (5)
Join Date: May 2008
Posts: 270
NP$: 97.00 (Donate)
yilduz is on a distinguished road
Animal Rescue
Originally Posted by -TV-
dont jump to big codes just start small you learn faster and faster that way


I don't. I tried to learn Javascript that way and could never remember anything once the tutorial was over. After a while, I just decided to make a big code that did a bunch of stuff. It took a little while, but I made it and got a much better understanding of the language that way than I did doing all kinds of little tutorials.

I also learned another language that way (I've never done C++ but I'm told it's very similar). I tried a bunch of different little things and could never quite remember stuff. After a while I figured I'd just create a combat code for an MMORPG and after a while, I had a working code. After that, I made a code for various spells, then another code for picking up, dropping, equipping, unequipping items.

I always seem to learn a lot better when I jump into something big rather than trying to learn with small tutorial codes.

I do agree with you on one thing, though. Modifying an existing code does help. I learned a lot by doing that, too. The problem with that is I can't find any large php codes to modify. Every time I download a script for something it's always several folders and files of all kinds of stuff and that's WAY too much stuff to dive into.

Thank you both for your responses. psalzmann, I didn't even think about the idea of a database for some reason. I'll mess around with that, too, then try this guestbook thing.

edit: two posts while I was typing this one. Thank you both for the links. I'll explore those now.
__________________
I'm selling off domains at my homepage | PaganDruid.com | My family site | RunicTarot.com

Last edited by yilduz : 06-01-2008 at 02:54 PM.
yilduz is online now   Reply With Quote
Old 06-09-2008, 12:59 PM   · #7
hostingbuster
New Member
 
Trader Rating: (0)
Join Date: Jun 2008
Posts: 11
NP$: 0.00 (Donate)
hostingbuster is an unknown quantity at this point
Wink

Yes a good way to get to learn any code is to make a big project and work out how it works and then you can keap that bit of code and use it in somthing else you will make then before long you have a lot of code that makes somthing big. there is a vid on how to make a basic guestbook on 3dbuzz.com its old but it will set you in the right way to making your own guestbook and making it up to date with php 5

hope this is some sort of help to you
hostingbuster is offline   Reply With Quote
Old 06-10-2008, 12:19 AM   · #8
Epic
Senior Member
 
Epic's Avatar
 
Trader Rating: (95)
Join Date: Sep 2005
Posts: 3,657
NP$: 43.34 (Donate)
Epic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant futureEpic has a brilliant future
Starting on a big project and coding it step by step is a good way to learn, but to be honest, you might not want to use that actual code online until you know a little more about PHP.

I don't know about you, but the first things I coded in PHP were full of errors and vulnerabilities. Since then, I've cleaned up my coding.
Epic is online now   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Click to Watch Instant Video Traffic Down Under Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 10:09 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0