How to code PHP?

Newbie Spellweaver
Joined
Apr 28, 2013
Messages
28
Reaction score
4
Hello! :P: I've allways wanted to know how to make a simple "administration panel" for a website. You know, like a "news panel" but with more features. I can code HTML and CSS to 110%.


I'm looking for a good tutorial there you can learn how to get/add/edit/delete information from a table in the database, and a simple login feature. I'm not looking for a free tutorial though, so.. any good "pay sites" for that?

Thanks in advance!:thumbup1:
 
Hello! :P: I've allways wanted to know how to make a simple "administration panel" for a website. You know, like a "news panel" but with more features. I can code HTML and CSS to 110%.


I'm looking for a good tutorial there you can learn how to get/add/edit/delete information from a table in the database, and a simple login feature. I'm not looking for a free tutorial though, so.. any good "pay sites" for that?

Thanks in advance!:thumbup1:

We actually run into these sorts of questions here a lot, I'd first off like to say welcome to RaGEZONE and I hope we can help you.

On to your question, there are thousands of these tutorials littered across the internet but not all of them are what you should learn, an example being most of use the mysql_ syntax which is out of date, insecure and soon to be deprecated. I'd suggest you learn the login system first and use the methods learnt from that to build the rest yourself.

Use google to find such tutorials and have a search query including such words: PDO MySQLi login system tutorial

Things to look out for are if any of the code includes the listed code DO NOT USE IT
mysql_connect
mysql_query
mysql_select_db
or anything that is mysql_

I could link you to tutorials but as a programmer from experience it's better to find things for yourself than to rely on others.

All the best,
Richard Komakech.
 
We actually run into these sorts of questions here a lot, I'd first off like to say welcome to RaGEZONE and I hope we can help you.

On to your question, there are thousands of these tutorials littered across the internet but not all of them are what you should learn, an example being most of use the mysql_ syntax which is out of date, insecure and soon to be deprecated. I'd suggest you learn the login system first and use the methods learnt from that to build the rest yourself.

Use google to find such tutorials and have a search query including such words: PDO MySQLi login system tutorial

Things to look out for are if any of the code includes the listed code DO NOT USE IT
mysql_connect
mysql_query
mysql_select_db
or anything that is mysql_

I could link you to tutorials but as a programmer from experience it's better to find things for yourself than to rely on others.

All the best,
Richard Komakech.
Thanks alot! I'm going to search around a little bit on Google. And i suppose i shouldn't use "mysqli_" either?
But anyway, i'm really looking forward to learn how to code PHP.

EDIT: And how can i connect to a database without using mysql_?
 
Last edited:
Thanks alot! I'm going to search around a little bit on Google. And i suppose i shouldn't use "mysqli_" either?
But anyway, i'm really looking forward to learn how to code PHP.

Whoops sorry, I should've thought about that!

mysqli_ is fine, do look to use that or PDO. MySQLi and PDO are very similar but much, much better than mysql_

Hope that isn't too confusing!

If you need any help during your learning process don't hesitate to contact me directly through the private messaging system or post a thread here and someone will get back to you as soon as they can.

Good luck and enjoy learning PHP :D:

All the best,
Richard Komakech.
 
I want to learn the basics of PHP first though.
And later, if i'd understand everything, go a little "deeper in the woods".
 
When I started out learning PHP I found it quite difficult to remember. The way PHP uses functions and libraries is very different from for example C# and Java. Let me give you an example.

In C# you would make a lowercase version of a string like this:

Code:
someString.toLower();

In PHP you would achieve the exact same result like this:

Code:
strtolower($someString);


Dont get me wrong!
I love PHP, I'm using it everyday at work. It's just important to remember that you probably wont learn all the functions at once, because the collections of functions are really messy. But here comes the good part.PHP is wonderfully documented. As well as other helpful sites as Tizag (I personally don't like it that much, but heck, I know alot of people do).


http://php.net/manual/en/index.php
I have used the PHP-manual since I started developing in PHP, and I still do it today.

Another good thing, is that PHP is really easy to mess around with, so it souldn't be that difficult to start learning :)

Have fun!
 
I learned PHP from like everyone meaning tons of different sites to get different views on different types of codes.

W3Schools Online Web Tutorials //Started here like 3 or 4 years ago
Tizag Tutorials //After I finished whatever was on w3schools
thenewboston - YouTube //Finished here ,Since I was only reading code to study I tried videos for a different view
phpacademy - YouTube //Finished here too, Good stuff as thenewboston but not enough to pull your knowledge further
Google //Yes google, you can learn alot of google searches

The other thing was I download sources and you edit them / study them and try to understand them.

and finally
PHP: Hypertext Preprocessor // Pretty much everything you need to know, study hard and succeed
 
Before you jump head first into it you may want to look into coding practices.

If you just go ahead and code you could quickly find your ap's get messy and you have to redo code.

Personally I would suggest as a beginner you go and try out PHP Frameworks. Most of them are over powered for what the average coder needs, but frameworks make coding a lot easier, are better scalable and are generally easier to learn to use than php.

Some examples of frameworks are Zend, CakePHP and CodeIgniter. I use Zend and CI depending on what I am doing. The only downside is if you want to do something abstract to the framework, (Like I found out when trying to use stored procedures on CI) Most of the time it is just hard while some of the time it is imposible without leaving the framework and calling in an include/using an AJAX request.

Which is something else you will find usefull to "sit between" HTML and and PHP. Grab a javascript framework like jQuery. Again, it makes using javascript a lot quicker and easier. You will have to use plain javascript as well, but there are a lot of useful tools pre-programmed into the frameworks, like previously mentioned, AJAX functions.

Fal
 
Back