Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

06 December 2016

3 steps to build and create your own website - Learn how!

Everyone wants to make and build a professional website with his own, for business, Marketing, Personal or any ideas he wants to share it, But the majority they don't knowing anything about steps and fear of work and coding because it's very hard and only programers can do that, And that certainly wrong!

create,a,simple,website
How to create your own website
 

So today I gonna show you how to create a good website in days depends about your Ideas.

What are the objectives and what you will learn from that lesson :

  • know how to learn HTML and CSS in few days.
  •  build your webpages ( Like home,about us, contact us ...)' by  coding, or by using a software.
  • What's a statistical and dynamic web site means?
  • Save your money, No need to buy ready websites again!
  • What does it mean a Hosting and Domain name, and how I can get the both

Steps : How to make an own website!

 
wikihard how to make a website
HTML & CSS


1. LEARN HTML/CSS : All websites made by HTML and CSS because they are necessary to show the body and the Contents, HTML it's a very easy markup language, You can learn at W3SCHOOL or CODECADEMY, Also you can make webpages without learn HTML by using softwares like : DreamWeaver, FrontPage... using sofwares is easy and very quickly, just try to see some tutorials in Youtube!


 
wikihard making a site with php
PHP - Web programing language


2. LEARN PHP BASICS : if you want to make just webpages has contents and informations about you or your work with HTML extension you don't need to learn basic of PHP, cuz HTML itself is enough, And your website called " Static " because there is no programming language in it!, Further if you want to make a customise your webpages like adding actions, You need to use a web programing language Like PHP and Pyton. There are a lot of PHP course in W3SCHOOL and CODECADEMY you can see it.



easy learn with php
Hosting and domaine name


3. GET A HOSTING + DOMAINE NAME : when you have finish your website, all you need is to buy a premium hosting and domain name to upload the website files in, and start sharing your webpages in Google. You can buy it from Godaddy.com or Name.com, they are the best!, Also you can get a free hosting with a free domaine name, they are a lot of companies just search in google then register.



 

06 March 2016

How to create comments system using PHP and MYSQL

Hello Programmers this is my first lesson in PHP and it talk about how to make and create system comments to your website or any websites you want. All forums use this system and the most of websites.

how,to,create,comments,system,make,comment,php,mysql,database,table,website,forum,blog,wordpress,programmer,lesson
create comment system by using PHP and Mysql @wikihard



I wish you take advantage of the lesson and learn more about PHP programming.

Notice : All big websites use COMMENTS SYSTEM like Facebook, Twiter and google plus.

Facebook Example :

how,to,create,comments,system,make,comment,php,mysql,database,table,website,forum,blog,wordpress,programmer,lesson
Simple System comments of the Facebook @wikihard

Google+ plus Example :

how,to,create,comments,system,make,comment,php,mysql,database,table,website,forum,blog,wordpress,programmer,lesson
Google plus comment @wikihard

Google and Facebook are using Javascript, but in this topic I will show you how to create a simple system commenst by using PHP & MYSQL only, I need you to learn the basic, then you can improve it yourself!

firstly you must to create a php file called connect.php and put the script bellow in, This file will help us to manipulate between the website and database without any problem.

  Connect.php File :


<?php

$user='username';

$user='username'; 
$pass='password'; //@wikihard copywrite

$host='localhost'; // if you have a web hosting change this infos


$database='public';

mysql_connect("$host", "$user", "$pass")or die("cannot connect");

mysql_select_db("$database")or die("cannot select DB");


?>

Read more :  3 ways to learn PHP on your own
Read more :  9 tips to become better in programming 

When you finish connect.php file, we will start to create new important file called index.php, we will use this page to display our comments and to add more comments too.


<?php

require_once('connect.php');
$message ='';
if(isset($_POST['submit']))
{
if(!empty($_POST['comment']) && !empty($_POST['name']))
{

//created by @wikihard
$comment= $_POST['comment'];
$name= $_POST['name'];
$query = "INSERT INTO `comment` VALUES(NULL,'$name','$comment')";
$qresult = mysql_query($query);
$message="Thank you for comment!";

} else
{
$message="please don't let area empty!";
}

}

$sql = "SELECT * FROM `comment`";
$qsql = mysql_query($sql);




?>
<!DOCTYPE html>
<body>
<?php
while ($row = mysql_fetch_array($qsql))
{
echo "<b>".$row['name']."</b> : </br>";
echo " ".$row['comment'].". </br></br>";
?>
<form method="post" action="index.php">
<input type="text" name="name" placeholder="put your name"></br></br>
<textarea rows="5" cols="25" name="comment" placeholder="write your comment here"></textarea></br></br>
<input type="submit" name="submit" value="post comment">
</form>
<?php echo $message;?>
</body>
</html>


 How it work :


      - First we must call the connect.php file to connect with the database!

      - When we add value and press the button "Add comment", the comment will send and save in the comments table(id,name,comment) in the database.

      - if the fields are empty, will NOT WORK and this message will show for the user "please don't let area empty " Until he put values before submitting.

      - Now we need to display all comments from the database (comments table) to the home page ( index.php ).

      Any question please let a comment! Good luck

      28 February 2016

      3 ways to learn PHP on your own

      Today I want to give you a powerful and easy ways to learn PHP programming on your own and without loss your money by purchase courses, to learn PHP as soon as possible you need to love this language and to practice it in anytime you feel bored, my personal ways let you learn PHP programming with yourself in a professional manner and without need help of others.

      ways,to,learn,php,on,your,owen,programmer,programming,developer,courses,professional,free,tutorials,php,guide
      3 ways to learn php on your own - with yourself - @wikihard



      These methods are from my long experience in PHP and Web developing in general.

      Before we start you must remember this things :


      •  Be careful to stop or fail ( maybe you feel this language is different or hard!)
      •  Remember always this sentences " Everything is easy, just you need to make it simple! "
      •  if you really want to be a professional PHP programmer, you need at least 1 year of experience and practicing PHP.
      •  PHP is very big space, because everyday you will learn something new, so you never say I know everything about PHP and try to learn more even you can make a lot of dynamic websites !
      • Always there are a lot of methods to solve your problem.
      • Be different !


      3 way to learn PHP with yourself:


      Read more : A series of steps in order to become a successful programmer

      1. W3Schools 

      ways,to,learn,php,on,your,owen,programmer,programming,developer,courses,professional,free,tutorials,php,guide
      3 ways to learn php on your own -  @wikihard

      w3Schools is from the best websites to learn programming languages, you only need to register and start, but you must understand all classes and practice it with yourself. when you sure that you understand everything. leave it! or start to learn another language like JavaSkript.
      website : www.w3schools.com


      2. CodeCademy 

      ways,to,learn,php,on,your,owen,programmer,programming,developer,courses,professional,free,tutorials,php,guide
      3 ways to learn php on your own -  @wikihard

      Code Cademy is like W3Schools, the different thing is the learning way so when you use codecademy you have more ideas about PHP programming .
      website : www.codecademy.com



      3. Coursera 

      ways,to,learn,php,on,your,owen,programmer,programming,developer,courses,professional,free,tutorials,php,guide
      3 ways to learn php on your own -  @wikihard

      Coursera is your way to learn more advanced methods, you only need to download all free PHP tutorials, You can use Youtube too but try to download only the long courses.
      website : www.coursera.com



      Resume 

      if you follow exactly my steps, I'm sure you will start making different websites in short time, Patient is your power point and practices to advance.
       


      10 February 2016

      A series of steps in order to become a successful programmer

      Many coders looking for success, professionalism and they ask themselves always, how do I become a professional?



      I'll put you some key points which leads to professionalism :
      1. extension programming as possible
      2.  do not programmed each script from zero
      3. if you are a professional designer doesn't mean you are a professional programmer
      4. the rise of the stairs is step by step
      5. Tradition is the best way to success
      6.  finally: If you cannot do a certain order ask
      programmer always need to ask, search, you can use Google for searching and try to find a good groups in Facebook and social network you can improve your skills with them!