Black_Worant's Profile

155
points

Questions
19

Answers
13

  • Asked on November 8, 2017 in Information.

    Digital Media Source: Facebook users in Pakistan found themselves unable to access the social networks through their computers and smartphones because Facebook is temporarily down for maintenance.

    Facebook Message:

    • 82 views
    • 1 answers
    • 0 votes
  • Asked on November 8, 2017 in Programming.

    In this article i am going to create a  login system in PHP. We use HTML, Css, PHP and MySql.

    First of all you need a web server like xampp or wamp

    We use xampp in this tutorial.

    Step 1:
    Let’s start with the database.
    You need to create database using your localDB (MySQL)

    In your browser type URL http://localhost/phpmyadmin then you saw the page like this:

    Then Press Database button and create new database
    After creating database create table “login” and set fields
    ID, Username, Password

     CREATE TABLE `login`(
     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
     `username` VARCHAR(30) NOT NULL,
     `email` VARCHAR(50) NOT NULL,
     `password` CHAR(128) NOT NULL
     )
     

    Step 2:
    Create HTML form for Login (Login.html)

     <html>
     <body>
     <form method=post action=login.php>
     Username:<input type="text" name="username">
     Password: <input type="password" name="password">
     <input type=submit value="submit">
     </form>
     </body>
     </html>
     

    Step 3:
    Create PHP Login Function (Login.php)

     <?php
    $db = mysqli_connect('localhost','root','','login')
     or die('cannot connect db');
    $username = $_POST["username"];
     $password = $_POST["password"];
    $sql = "SELECT * FROM users WHERE username= '$username' and password = '$password'";
    $results= $db-> query($sql) or die (mysqli_error($db));
    $count = mysqli_num_rows($results);
    if ($count == 1)
     {
     print "you have sucessfully login";
     //header("location:loginsucess.html");
     }
     else
     {
     print "invalid username or password";
     }
     ?>
     

    Step 4:
    Create HTML form for Registration (Register.html)

     <html>
     <body>
     <form action="register.php" method="post">
     Username: <input type="text" name="username"> <br>
     Password: <input type="password" name="password"> <br>
     Firstname: <input type="text" name="firstname"> <br>
     Lastname: <input type="text" name="lastname"> <br>
     Phone: <input type="text" name="phone"> <br>
     <input type="submit" name="submit" value="submit">
     </form>
     </body>
     </html>
     

    Step 5:
    Create Registration Function (Register.php)

     <?php
    $db = mysqli_connect('localhost','root','','login')
     or die ('cannot connect to db');
    $username = $_POST['username'];
     $password = $_POST['password'];
     $firstname = $_POST['firstname'];
     $lastname = $_POST['lastname'];
     $phone = $_POST['phone'];
    $sql = "INSERT INTO users(`username`,`password`,`firstname`,`lastname`,`phone`)
     VALUES('$username','$password','$firstname','$lastname','$phone')";
    $db->query($sql) or die(mysqli_error($db));
    ?>
     

    This answer accepted by Faiza_s. on November 8, 2017 Earned 15 points.

    • 119 views
    • 1 answers
    • 0 votes
  • Asked on November 4, 2017 in Information.

    Most common Question is “How can I increase traffic on my new blog”. This answer is designed to be useful to all forms of bloggers – independent folks, those seeking to monetize, and marketing professionals working an in-house blog from tiny startups to huge companies.

    • Be Strategic About Your Content
    • Create Evergreen Content For Your Blog
    • Participate in the Communities Where Your Audience Already Gathers
    • Don’t fear the Keyword
    • Use long tail keyword
    • Conduct Keyword Research While Writing Your Posts
    • Use Twitter, Facebook and Google+ to Share Your Posts & Find New Connections
    • Install Analytics and Pay Attention to the Results
    • Participate in Social Sharing Communities Like Reddit + StumbleUpon
    • Guest Blog (and Accept the Guest Posts of Others)
    • Participate in Question Answers Sites
    • Enable Subscriptions via Feed + Email (and track them!)
    • Be Consistent and Don’t Give Up
    • 63 views
    • 1 answers
    • 0 votes
  • Asked on October 19, 2017 in Information.

    $250 – $500 is very easy to earn specially if you have different ideas.
    There are many ways to earn online but in my case i am using blog.

    1. Get WordPress or Blogger: Choose a topic you have passion about and start blogging
    2. Publish content: Publish content and share it on social network websites
    3. Be patient: You won’t hit 500 a month immediately, if you generate useful content and don’t give up, you’ll be earning $250 or $500.
    • 61 views
    • 1 answers
    • 0 votes
  • Asked on October 18, 2017 in SEO.

    Most of time web traffic helps in SEO but it is not compulsory. If you have irreverence  traffic on your website which spoils your statistics like average visit time, bounce rate then you may get your website rank down.
    However if you have useful traffic than it will definitely help you in SEO and keyword position. So yes web traffic help in SEO if you have a right traffic.

    • 59 views
    • 1 answers
    • 0 votes
  • Asked on August 29, 2017 in Advertisement.

    There are two ways to promote your website;
    1) If you’re looking for traffic to the site, Google Adwords is good way to go. Providing your content is good although better or best, its the quickest way to gain people to your site through search.
    2) The other way is to gain paid traffic. You should start campaign on social network sites like Facebook or Twitter to attract traffic on your website. Social Networking websites are good ways to promote your self and content you should try this.

    • 89 views
    • 1 answers
    • 0 votes
  • Asked on August 22, 2017 in Information.

    I hear many people want to know the top 10 richest people of Pakistan  in 2017. That’s why i made a research and get the answer for you guys:

    Pakistan is consider a poor country in world but still there is many people in Pakistan who has very rich. Here is the list of top 10 Wealthy people of Pakistan in 2017.

    1) Shahid Khan:
    Shahid Khan, is an Pakistani billionaire and business tycoon lives in America. He was born in July 18, 1950 (age 67) Lahore, Punjab, Pakistan. He is the owner of NFL Team Jacksonville Jaguars, English football team Fulham F.C. and Automobile manufacturing company called Flex-N-Gate. His net worth is US$8.5 billion (May 2017).

    2) Mian Muhammad Mansha:
    Mian Muhammad Mansha is a Pakistani business leader and billionaire. He is the founder and CEO of the Lahore-based international company Nishat Group. Mian Mansha has been the highest tax-paying individuals in Pakistan. Hw was born in 1947 Chiniot, Punjab, British India now Pakistan. His net worth is ₨263.3 billion (equivalent to ₨810 billion or US$7.7 billion).

    3) Anwar Parvez:
    Mohammed Anwar Pervez (born March 1935) is a Pakistan-born British businessman. He is the founder and chairman of Bestway. In 2017 Anwar Pervez’s net worth is £2.95 billion (US$3.8 billion); which makes him the richest Pakistani in the UK

    4) Asif Ali Zardari:
    Asif Ali Zardari famous as Asif Zardari is the formal President of Pakistan and the co-chairman of Pakistan Peoples Party(PPP). He reserves the 3rd place as Richest person in Pakistan. His net worth is US $1.8 billion.

    5) Nawaz Sharif:
    Mian Muhammad Nawaz Sharif is Former Prime Minister of Pakistan and also a business tycoon of Pakistan. He was born in December 1947, Lahore, Punjab, Pakistan. His net worth is ₨168 billion (US$1.6 billion).

    6) Saddaruddin Hashwani:
    Sadruddin Hashwani is a Pakistani business tycoon. He is the founder and chairman of Hashoo Group, a massed best known for Pearl-Continental Hotels & Resorts. He was born in 1940 In Karachi. His net worth is ₨115 billion (US$1.1 billion).

    7) Nasir Schon:
    He is currently the CEO of Schon Group which owns Pak-China Fertizilers, Schon Bank, Schon Textiles. He is well known business leader. Currently, he is working a project called ‘Dubai Lagoon’. His net worth is Us $1 Billion.

    8) Rafiq M. Habib:
    The Habib group’s most famous and successful subsidiary is its Banking and Finance division. Rafiq M.Habib is the CEO of Habib Group. His net worth is ₨94 billion (US$890 million).

    9) Malik Riaz Hussain:
    Malik Riaz is a Pakistani businessman and billionaire. He is the founder and chairman of Bahria Town, the largest privately held real estate development company in Asia. His net worth is ₨84 billion (US$800 million). He was born in Rawalpindi.

    10) Mian Muhammad Latif:
    Mian Muhammad Latif was born in 1952 in Toba Tek Singh to a Arain Punjabi family. Hw is the chairman of Chanab Group and ChenOne. His net worth is ₨82 billion (US$780 million)

    • 104 views
    • 1 answers
    • 0 votes
  • Asked on August 21, 2017 in Programming.

    Laravel Vs CakePHP: Which is the best PHP Framework:

    Cake PHP is an open-source PHP framework. It follows the model–view–controller (MVC) method. CakePHP uses renowned software engineering concepts, such as model–view–controller, active record, data mapping, and database design.
    Cake PHP started in 2005, when Michal Tatarynowicz wrote a code of a rapid application development in PHP. He published the framework under the MIT license. The first version of the framework released in In May 2006.

    Features:

    • Secure with authenticating
    • Easy To learn
    • Based on MVC Driven framework and used for large scale websites.
    • Less configuration required just you need to connect your database.
    • Template Engine or Ready to use Template is the key feature of Cake PHP

    Laravel is a free, open-source PHP based web framework, created by Taylor Otwell in 2011. Key Features of laravel is modular packaging system with a dedicated dependency manager, and different ways for accessing relational databases. March 2015, Laravel is watched as one of the most popular PHP framework

    Features:

    • Checks between multiple database objects
    • Auto Loding Facility
    • Very Fast speed
    • Code First Technique
    • Make programming easy for web developer
    • Blade Template Engine

                                 

    Features Laravel Cake PHP
    Database Model Object Oriented Object-Relational Document Oriented
    Programming Language PHP PHP
    License MIT License MIT License
    Template Engine Blade Template Engine PHP
    Programming Paradigm Object Oriented Event Driven Functional Object Oriented Functional Event Driven
    Support Git Support Git Support

    This answer accepted by JackMa. on August 21, 2017 Earned 15 points.

    • 558 views
    • 1 answers
    • 0 votes
  • Asked on August 17, 2017 in Internet.

    In 2009, ETIM, which was formally announced as terrorism organization by both the UN and the US in 2002, organized a disturbance in China that killed almost 200 people. They used Facebook to communication. The Chinese government asked Facebook to help identifying the terrorists. Facebook said, hmm, just liberty troops training free speech. So China Government banned Facebook in China.

    • 183 views
    • 2 answers
    • 0 votes
  • Asked on August 16, 2017 in Programming.

    Object-oriented programming (OOP) is the core feature of the .NET framework. OOP is so important, you must understand its basic principles and terms to write a simple program. The central idea behind OOP is to associate into a single unit both data and the methods that operate on that data; such units are called an object. All OOP languages provide instruments that help you implement the object-oriented model.

    These are the important topics in Object Oriented Programming.

    • Classes and Objects
    • Casting
    • Constructor and Destructor
    • Function Overloading
    • Encapsulation
    • Inheritance
    • Interface
    • Polymorphism

     

     

    Now we trying to print “hello world” in c#

    This is very simple and basic program in c# and we use class in this program.

     

    using system
    class Program
    {
    static void Main(string[] args)
    {
    Console.WriteLine("Hello World!");
    Console.ReadKey();
    }
    }
    

    So Program is the name of the class that contains the Main () method. On line 1 , a using directive indicates to the compiler that this source file refers to classes and constructs declared within the System namespace. Line with the public keyword indicates the program accessibility scope for other applications or components.

    The Output of this this code is shown below:

    This answer accepted by Faiza_s. on August 16, 2017 Earned 15 points.

    • 106 views
    • 1 answers
    • 0 votes