News Portal Project in PHP and MySql

Anuj Kumar

Hi! I am Anuj Kumar, a professional web developer with 5+ years of experience in this sector. I found PHPGurukul in September 2015. My keen interest in technology and sharing knowledge with others became the main reason for starting PHPGurukul. My basic aim is to offer all web development tutorials like PHP, PDO, jQuery, PHP oops, and MySQL, etc. Apart from the tutorials, we also offer you PHP Projects, and we have around 80+ PHP Projects for you.

Recommended Tutorials for you...

You may also like...

109 Responses

  1. Peter says:

    Nice project sir, this is helping us as young website developer…
    I am having some problem went i try to update some posts. i also can create new Category or sub category. Even went some time i want to create some new post.

  2. peter says:

    hi big Bro, i have the following mistake:
    ) Warning: mysqli_connect(): (HY000/1049): Unknown database ‘newsportal’ in C:\wamp64\www\newsportal\includes\config.php on line 6
    i have created the database

  3. Shalenstar says:

    Hello sir….I can’t login for admin…the passwordis not match…i have tried to insert another record in database but try to login …reply me user not register with us…

  4. atia says:

    hello i need help!! when i try to click read more on new of the main pagethere is erro : Call to undefined function random_bytes() in Fatal error: Call to undefined function random_bytes() in C:\xampp\htdocs\Newsportal Project\newsportal\news-details.php on line 6

  5. Agile says:

    Nice project sir, this is helping us as young website developer…
    I am having a warning of mysqli_fetch_array() expects parameter 1 to be mysqli_result,bool in line 55,60 of new sport alpine ex.php, 27,49 and of side bar. Php of users.
    And Admin\index.php on line 14.
    What does that mean sir?

  6. Naik Aakash says:

    Hello sir please help me, how can i get latest post at the top of page in (manage post ) admin panel?? Latest posts are shown at the end , i want them at top.
    & i want to create a new section for latest news how can i get results for that?

  7. suraj says:

    can u create a demo that how to type in hindi post from admin panel

  8. shabz says:

    when i post news in hindi it says ” something went wrong.

  9. shabz says:

    can we post news in hindi?

  10. ghazi says:

    ( ! ) Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp64\www\news\includes\footer.php on line 6
    help pls

  11. zerox says:

    hello sir please when i paste any text i copy into the adpost area , when i post it give me an error what should i do. i have refresh mutiple times still same error.

  12. MS says:

    Please add Popular post by views in sidebar…

  13. herbert says:

    Sir the feature image failed to update or change ,when i want to update new image it fails to update and it brings empty space, can you help please

  14. herbert says:

    Hy how can i solve this error-
    Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /opt/lampp/htdocs/Newsportal/newsportal/includes/footer.php on line 6

    • Anuj Kumar says:

      This issue already fixed. Please download the latest updated code.

      • herbert says:

        Sir the feature image failed to update or change ,when i want to update new image it fails to update and it brings empty space, can you help please

  15. abulhasem says:

    Asllahmoalikum i see your demo site. but i cant login ,
    i am trying
    username / email : admin/ phpgurukuloficial@gmail.com (use any one)
    Password : Test @12345
    your comment systems don’t have screenshot . if there have show screenshot system i will show you, i need your help please

  16. krithiga says:

    sir, how to clear this error . Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\AppServ\www\news-portal\newsportal\index.php on line 28

  17. alokdev says:

    Fatal error: Call to undefined function random_bytes() in C:\xampp\htdocs\new\n\newsportal\news-details.php on line 6

  18. Manit Jaiswar says:

    while running the script im getting an error

  19. Kevin says:

    Hi what kind of hash is used on databasa table admin user ? I would to create another admin but I don’t know what kind of crypting used ? Thanks for your work

  20. Haroon Akhtar says:

    sir there is a big problem in this project!
    Sometimes When i insert the copy text in the post section it show me an error and sometimes it works fine. Means when i copy text from wordfile and paste it in add post section the it shows me an error and post is not inserted into database but sometimes it works fine. Iam using jpg image but problem is with post description and post title but i don’t know what is the problem please help me ..

  21. Subir says:

    Sir, how i change the bg colour of header and footer?

  22. estiv says:

    Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp64\www\news\news\news\index.php on line 28

  23. iman firdaus says:

    still error in “Failed to connect to MySQL: Access denied for user ‘root’@’localhost’ (using password: NO)”
    Although the database name and password are correct
    config.php always reading root

  24. Aakriti Chopra says:

    I’m unable to run the project. Please help me sir Please.
    The following errors are coming:
    Warning: mysqli_connect(): (HY000/1049): Unknown database ‘newsportal’ in C:\xampp\htdocs\newsportal\includes\config.php on line 6
    Failed to connect to MySQL: Unknown database ‘newsportal’
    Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Foundin C:\xampp\htdocs\newsportal\index.php on line 28
    Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\index.php on line 54
    Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\index.php on line 55
    Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\index.php on line 59
    Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\index.php on line 60
    Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 26
    Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 27
    Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 48
    Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 49
    Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Foundin C:\xampp\htdocs\newsportal\includes\footer.php on line 6

  25. dinesh says:

    data base upload ni ho raha online
    Table structure for table tbladmin
    CREATE TABLE tbladmin (
    id int(11) NOT NULL,
    AdminUserName varchar(255) NOT NULL,
    AdminPassword varchar(255) NOT NULL,
    AdminEmailId varchar(255) NOT NULL,
    Is_Active int(11) NOT NULL,
    CreationDate timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    UpdationDate timestamp NULL DEFAULT ‘0000-00-00 00:00:00’ ON UPDATE CURRENT_TIMESTAMP
    ) ENGINE=InnoDB

Leave a Reply

Your email address will not be published. Required fields are marked *