Online Inventory Management Software with PHP, Open Source

Online Inventory Management Software is an open-source project developed by procedural PHP, MySQL, bootstrap, and jquery. This application is based on a web application and developed with procedural PHP, MySQL database, jquery, datatables plugins, and Bootstrap. This application provides users to manage brands, categories, products, orders, and reports. This system provides the best inventory management software features. This system can be also used for small businesses. It is free web-based inventory management software.

On the brand’s page, the admin can add, update, and remove the brand’s information. In the product section, the admin can add product information and manage the stock. In the order section, the application will manage the stock of the product and generates the total amount of payment to be paid by the client. The application can also generate the orders report based on the month you select.

Requirements

  • PHP Version +5.4.4
  • Web Server ( Recommended: Apache with PHP and Mysqli )

Features

  • View of the total number of brands, categories, products, and orders.
  • Add, update, and remove brand information.
  • Add, update, and remove categories information.
  • Add, update, and remove product details.
  • Add, update, and remove order details.
  • Print orders invoice.
  • Update order payment.
  • Generate the orders report by selecting specific start and end dates.
  • Change Password
  • Change Username

Users

  • Admin
    • Username: admin
    • password: password

Change the VAT

To change the vat number, all you have to do is go to the order.js file which is located at [custom/js/order.js] and search for subAmount function. In line 555, you will see the VAT variable, change the VAT number that you desired. To change the vat number in the front end of the application, go to orders.php, and at line 369, you will see the VAT label, change it to the number you desire.

Download Online Stock Management System

Please Read:

While creating the database for this system, either you can create the name of the database as a stock or change the name at the php_action/db_connect.php file. As shown below:


<php 
$localhost = "127.0.0.1"; 
$username = "root"; 
$password = ""; 
$dbname = "stock"; 

// db connection 
$connect = new mysqli($localhost, $username, $password, $dbname);

// check connection 
if($connect->connect_error) {
   die("Connection Failed : " . $connect->connect_error);
} else {
   // echo "Successfully connected";
}

?>

System Live Preview

Live Preview

For Source Code:

Download

Related Posts:

213 comments

  1. Hi,
    I would like to have your Online Stock Management System
    Please contact me ASAP.

    • Hello,
      You can simply download the file which is provided in the website.

      Thank you.

      • i know its a bit late but why cant i log in?

        • same problem here…..do you get any idea about this..?pls tell me..
          Is this project is made in codeignitor…?
          i am gettting error of
          localhost:9080 is not avialable….
          how can overcome this error….?

          • you have to change the localhost :9080 to you localhost/filename for example localhost/new.php

          • 9080 is the port number he is using so it might be different for your pc it might just be localhost/stock/index.php or localhost:8080/stock/index.php or anything it depends on the port your system assigns for the database (MySQL)

        • hi i cant log in

      • Hey can you help me please instead of “Selecting” all the products in Add Orders and Add Product could you please turn it into a search ? please it’s my only chance to pass in my project 🙁

    • i am gettting error of
      localhost:9080 is not avialable….
      how can overcome this error….?
      where is the file

    • Ravi Man Shrestha June 17, 2020 at 5:57 pm

      Hello

      I entered User and Password given in database named stock. which is given below :
      username : admin
      password : 5f4dcc3b5aa765d61d8327deb882cf99

      But I couldn’t login with this username and password.
      What should be the reason of this problem, Please help me.

  2. Hello
    Nice work.
    I would like to change my vat percentage and show my current stock in report.

    Please let me know how I update those things.
    It will be great help for me.

    Thanks

  3. is that open source code? i mean, can i fully use it for free?

  4. JEFFREY PANGILINAN September 11, 2016 at 1:03 pm

    Hey bro.. thank u very very much….

  5. i see the login page but it redirects me to 9080 port i tried changing it but no luck any help?

  6. First of all good job, and thank you for share, best reggards from Spain.

  7. On order page there is no changes after changing the quantity. This is still that amount in total field which is product rate.Please help me how i can solve this issue.

  8. very nice tutorial sir

  9. Sir add New row in ADD ORDER page is not working please can you help me

  10. Hi bro thank you very much for the source code but i have a problem i Am already connect my system properly but when i try to log in it takes me back to the log in page NEED HELP PLEASE

    my Login url = http://tibm.ac.tz/stock/

  11. I want to change the vat from 13% to 0%.How can I do it.

    • Lo puede hacer en la carpeta custom en el archivo js/order.js

    • same problem sir here. did you fix the vat variable in order.js line 555?
      can you help me to change it into 12%. thanks in advance

    • have you changed the VAT value ??

      • Lean es facil!!!
        Change the VAT
        To change the vat number, all you have to do is go to the order.js file which is located at [custom/js/order.js] and search for subAmount function. In the line of 555, you will see the VATvariable, change the VAT number that you desired. To change the vat number in the front end of the application, go to orders.php and at the line of 369, you will see the VAT label, change it the number you desire.

  12. Hello,
    Thanks for the great software, i want to upload my server, but could not do that, already imported the database. showing this error..
    Connection Failed : Access denied for user ‘root’@’localhost’ (using password: NO)

    also i have updated the

    header(‘location: http://localhost:9080/stock/index.php‘);
    to
    header(‘location: mydomain.com/index.php’);

    ex. “mydomain.com” used for example

    Anyone can help me to solve it
    Thanks in advanced…

    • is it shared hosting you are using?
      have you checked the same thing on localhost if it is working or not?

      Please contact me on my email may be i can help because i have gone through the same issue with other project.

    • you have to use
      header(‘location: mydomain.com/stock/index.php’);

      dont delete that part the “/stock”

    • Hi Md. Elias. I also have had the same problem. In my case, the db_connect.php could connect with the database of the server. The parameters were
      $localhost = “127.0.0.1”;
      $username = “usernameatserverdb”;
      $password = “passwordatserverdb”;
      $dbname = “dbnameatserver”;

      but when I login, the index.php does not redirect to the dashboard. It just stays at the page where you wirte the username and password (index.php). Did you solve how to call the file dashboard.php?

  13. i am increasing the quantity but the total is not changing..

  14. i really like your work this is a great jod
    how can i donate

  15. Yesss youre the best thks and please keep making more

  16. Hi, I encounter some problem in your project.
    I have set up the database and data using your SQL code. And I have change the connection config.
    And I am able to login using admin password.
    But I can’t get access to the data, there is no data list shown although the data is set up in the database. How to solve it?

  17. I have using my database data to replace yours in the web.
    But i can’t display the data list after set up the all the necessary steps.

    Is the js file will affect the display of data

  18. big thanks to you for sharing this code :))

  19. hiii
    error in
    DataTables warning: table id=manageBrandTable- Invalid JSON response

    please Solution this error

  20. hi
    purchase product form design and connect to sales and code
    please help

  21. Hello, May I know why i cannot add new user?
    I tried to insert in phpmyadmin and in the sign in there…
    Please contact me as soon as possible,Thanks

  22. Ousseynou SANKHARE January 16, 2017 at 6:24 am

    Hi, bro,
    Thanks a lot for the great and good job.

  23. when i edit form validation in brand.js brandname is required to custom text but noting happened….only order.js does

  24. quantity 9 and i sell 10, and in database quantity -1
    how to fix quantity minus

  25. thanks for this wonderful videos and very nice explain and professional tutorial . i wish for you good and great future in php

  26. Hello codersfoder, please make a single video tutorial on using input text field for products instead of select option… We will use the item id to querry the db and echo d product name in another input field…thanks in advance

  27. Thanks brother You have done a great job. Keep it up. V
    Brother how do I add items and quantity of products to report print please. Thanks again

  28. Application Working Fine, But as we need to change Quantity in “Manage Orders” . The Problem is Quantity is not updated correctly in Product Table. Please Give Me Reply.

  29. Thankyou so much, God bless you 🙂

  30. Great Job.. very impressive. Thank you

  31. very impressive work …thanks for this..
    plesse suggest me one thing or give us a tutorial for adding bar code system in sms for product .

  32. How i change the size of the photos?, the photos that i see in products

  33. Hello, I downloaded your application but on the invoice I notice that the quantity does not multiply with the unit price of the product select

  34. Even what you put in the video on youtube, the bill does not work when I do the test

  35. hi.. is it possible to add more users ?
    how can i do this? i tried to add one user manually in phpmyadmin but when i try to log in it says incorrect username and password combination

  36. Hello , i like your work and i cover him a little bit,but i have a problem.When i create a new product, it dont appear in the datatable only right loading… on the save button.
    Someone can me explane what is the problem there?
    Thanks!!!

  37. Great work..!!!
    I have added one tab named as channel, everything works fine for channel like adding, removing and viewing data but on click of edit button popup opens with blank data. Can you please help me where is the exact issue?

  38. Hi i need help
    This site can’t be reached

    localhost refused to connect.
    Search Google for localhost 9080 stock dashboard
    ERR_CONNECTION_REFUSED
    this is my error plz help

  39. hi friends plz help http://localhost:9080/stock/dashboard.php
    is not working how to solve this problem
    ERROR screen,
    This site can’t be reached

    localhost refused to connect.
    Search Google for localhost 9080 stock dashboard
    ERR_CONNECTION_REFUSE

  40. The add row button in add orders is not working when this is uploaded on any hosting. It would be great if you could suggest me a fix

  41. hey man, thank your very much

  42. I go to line 555 order.js and change the vat value but after it saved nothing changed and the value still counted as 13%..help me plz

  43. why cannot display data on my mobile phone?

  44. how i can add my company name and contact number in order print page??? btw thanks a lot for this… project..

  45. Thanks for sharing the codes!

    Sorry, I’m novice and still learning. Does anyone know how to resolve the following error?

    Notice: Undefined variable: connect in C:\xampp\htdocs\stock\index.php on line 27

    Fatal error: Call to a member function query() on null in C:\xampp\htdocs\stock\index.php on line 27

  46. I managed to resolve the problem. Thank you.

  47. Hi,

    Thanks for your work !
    I have an issue when I add one column in the product table:
    “DataTables warning: table id=manageProductTable – Requested unknown parameter ‘8’ for row 0. For more information about this error, please see http://datatables.net/tn/4
    How can I solve that please ?

  48. i already change the vat on line 555 in order.js but it seems that its not working i calculate it manually but the answer is not correct.

  49. // vat
    var vat = (Number($(“#subTotal”).val())/100) * 7;
    vat = vat.toFixed(2);
    $(“#vat”).val(vat);
    $(“#vatValue”).val(vat);

    // total amount
    var totalAmount = (Number($(“#subTotal”).val()) + Number($(“#vat”).val()));
    totalAmount = totalAmount.toFixed(2);
    $(“#totalAmount”).val(totalAmount);
    $(“#totalAmountValue”).val(totalAmount);

    it show 13%

  50. dear sir, how can i remove a complete VAT because the products and orders are not same tax value, so i want to remove how i can i do please help me.
    thank u

  51. Is this project works with get??

  52. Hey i am unable to login
    Notice: Trying to get property of non-object in C:\xampp\htdocs\stock\index.php on line 29

    i have created a database named stock and also user root-> no password
    user admin -> password: password
    While signing in it says username doesnt exist

  53. Hello sir I need help you..

    It’s not working for me

    DataTables warning:table id=manageBrandTable – Invalid JSON response. For more information about this error, pease see http://datatables.net/tn/1

  54. This site can’t be reached
    This Is My error

  55. i Can’t Login Please Please Please help ME

  56. Hi, code looks great. Is there anyway to disable certain features such as VAT and Brand?

    Thanks.

  57. localhost refused to connect.
    Search Google for localhost 9080 stock dashboard
    ERR_CONNECTION_REFUSED

    how to get rid of this error, i change my header, but still doesn’t work, thanks in advance

  58. Please,

    I Have not stil solved
    error ;
    “ERR_TOO_MANY_REDIRECTS”

    Solution Please,,
    Thank u

  59. Hello sir I need help you..

    It’s not working for me

    DataTables warning:table id=manageBrandTable – Invalid JSON response. For more information about this error, pease see http://datatables.net/tn/1

  60. Hi, great project!

    But there is a mistake when you put the goods on delivery and you cancel the bulletin … the state of the goods will not return to the original value of the warehouse (before the issue) … can you please call me with the solution?

    Thank you so much

  61. Can’t download the source code for this

  62. just use this code for redirect

    window.location = “index.php”;

  63. hi !
    thanks for the tutorials; i’ve been following them and coding after you since part 1. would you please upload or send me the remaining videos? the report file, setting and bashboard still empty

  64. Do you have plans to update this software?

  65. Mediafire really sucks, can you please provide alternate link to download source code. Thanks in advance

  66. hello Friends !
    i cant long in ,it says password and username isnot correct, would you tell me why plz ???thank you

  67. I try to add another row inside sql example ‘weight’. All record include weight appear but the ‘status’ column change red means not available. I’m confuse about the code [7] < [1] or similar in fetchOrder.php. What is that means?

  68. the Browser give me
    Connection Failed : Access denied for user ‘root’@’localhost’ (using password: NO)
    I change IP 127 …… to localhost

  69. Hi..can i know how to register as a new user in this system? Please reply me at the email ASAP

  70. Hi, thank you for sharing this project. I have installed and at the dashboard page I am receiving this message:

    Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15

    Line 15 says:
    $totalRevenue += $orderResult[‘paid’];

    Anny suggestions to solve it?

  71. please post ER diagram for the same

  72. Bro awesome work but when clicking on up button in quantity field, quantity increase but price remains same and not changing….But While entering manually using keyboard, code is working fine increment in quantity in price is observed bro

  73. hello how to use it oneline

  74. Hi Sir,
    Thanks for this great project, but i have problem on this project. the problem is:
    datatables warning: table id={id} – ajax error

    DataTables warning:table id=manageBrandTable – ajax error. For more information about this error, please see http://datatables.net/tn/7

    I hope you can help me Sir.
    Thank You

  75. Thanks a lot.

  76. Hello John,
    I want to integrate this php code with sql servers.
    Thanks

  77. mas indra makasih banyak yaa, membantu buat tugas kuliah saya

  78. Hi,
    Thanks for this great project. its work fine on my localhost but when i upload it on server its not work.
    when i click on login button its give 500 internal server error and not redirect to dashboard.
    So please anybody can help me on this.

  79. Notice: Trying to get property of non-object in C:\xampp\htdocs\stock\index.php on line 29

  80. why is it that i cant login even when i changed the username and password at the database ? it still says Incorrect username/password combination.

  81. *continuation from above*
    and even before i used the ‘5f4dcc3b5aa765d61d8327deb882cf99’ password. it didn’t still work. cant login.
    Please answer fast and explicit i really need this for my project. thanks

  82. I have problem in order.js.
    i change the vat variable into 12% but nothing happen. can you help me fix this please?
    and btw. thank you.

  83. How can i mark some fields as not required, so that the form can submit successfully with or without values on those fields.
    1. i like to create a product even when the product picture is not available
    2. I like to create an order with or without adding the clients info.
    Thank you

    • I want to use this stock management system offline to manage my computer and phone accessories store. I have set it up in my wampserver localhost and it all working fine. But 1. I don’t need to add photo when i am Adding New Product and 2. when i am Adding New Order, there are certain fields that need not be required. Please Help…Thank you

    • For this requirment, you have to go the controller folder and select the product.php class and remove the required field from the code.

      Thank you.

      • Please you will have to further breakdown the steps to do this, i can only find four folder in the zip folder; assets, custom, includes and php_actions folders. Where can i find the controller folder? and how do i remove the required field from the code? Please breakdown the steps to achieve this.
        Thank you.

        • This is procedural php, and MVC has not been implemented. To update the requirements, you have to update the code.

          Thank you.

          • I have removed the code bellow to from the product.js….but if looks like there is more to it. I need to Add a product without the product image.
            if(productImage == “”) {
            $(“#productImage”).closest(‘.center-block’).after(‘Product Image field is required’);
            $(‘#productImage’).closest(‘.form-group’).addClass(‘has-error’);
            } else {
            // remov error text field
            $(“#productImage”).find(‘.text-danger’).remove();
            // success out for form
            $(“#productImage”).closest(‘.form-group’).addClass(‘has-success’);
            } // /else

  84. how can I change the background? i want to make the index background color skyblue. any suggestions? thanks.

  85. Dude, I will pay you when I learn to earn from softwares. There is no words which is sufficient to thank you.

  86. Hello,
    how to work this software with wamp server in my laptop

  87. thanks a lot

  88. what is the procedure to work it online, I have tried more attempt but failed,, who can help me ……
    thank you

  89. HI
    Great Work, ut how do i customize the print invoice page?

  90. Hi sir. there, theres a warning on the dashboard page that says , Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15. how can I fix this?

  91. And Super thank you. You just saved my butt sir. Alot of thanks to you

  92. hi sir, i’ve used it. but when i try to add new data in the table database and i edit the name of data in js.. its not saved as i want, i run the js and i found the code is still the same while i’ve already saved in my notepad++.. did anything u can do to solved my problem?

  93. It is good ,but some of code I know you write .

  94. Sir please email me on how to change the VAT to 0%. Thank you in advance and much love to you from the philippines

  95. Thank you so much sir!you’re my hero! you saved my life and my thesis, I’ve been working for a month now on my own system but with busy schedule and commitments I can’t pay attention a lot. Anyway sir, I only have one request if it’s ok since, One of the requirements of our final output is to that one index into several pages like for example in a brand (index.php?mod=brand) and in a product (index.php?mod=product?sub=addproduct) something like that, I tried to work it on my own but it always inherits the dashboard when clicking the brand, categories and etc.
    I tried working like this in a multiple pages with one index….

    Brand

    Category

    while calling them in:

    Please email me 🙂 I will wait.

  96. localhost:9080/stock/dashboard.php in this line showing the error ” localhost refused to connect “

  97. In add order section the order was not save and it didn’t show any sucess message

  98. I have a problem with my orders populating the total amount it seems not to reflect the quantity

  99. hello pls can you send me the fully working version. the buttons seem frozen, thank you

  100. when adding product keep saying loading…

    nothing happens

    am on local host.

    any solution

  101. I have setup my database, everything works fine but i can’t login
    in my database i see that the username is adminknst but the password is impossible to find. Does anybody knows the password?

  102. add row button is work on locally but its not work on server , stuck with “Loading..” how to fix that problem plz help…….

  103. does anyone changed or disabled the vat value? I changed the vat variable but nothing changes.It’s always calculating 13% of vat. Can anyone help me to fix it? really big help.

  104. A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15
    Help

  105. thanks for the project ….
    but i cannot login….. help me to work with you project please…
    Thankyou

  106. Jahangir Hossain May 25, 2018 at 8:14 pm

    I am really grateful sir. U just make my day. Lots of wishes to u.

  107. I am getting this response please help me to solve this issue even i am using php 5.6.31

    DataTables warning: table id=manageBrandTable – Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1

  108. After logging in, I could see only message, .No input file specified’.
    pls help me. Thanks.

  109. Mirza Sanower Hosen July 18, 2018 at 2:09 am

    Hi,
    Firstly I want to Thanks a lot to you for uploading this kind of project with DB.
    Would you please explain me which file I have to change if I want to add client age, sex, address field in the add order form.
    This will be a great help for me. all other thinks are fine.

  110. Object not found!
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404
    localhost
    Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.5

  111. Object not found!
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404
    localhost
    Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.5

    can help me this. my localhost is localhost:8080 when i change all the localhost9080 to localhost8080 it shows like this

  112. can help me this. my localhost is localhost:8080 when i change all the localhost9080 to localhost8080 it shows like this
    Object not found!
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404
    localhost
    Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.5

  113. Hello, when I’m trying to add product it’s stuck in loading. I tried it on mozila and chrome and it did not work

  114. Good day, Im having this problem when generating reports
    Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\stock\php_action\getOrderReport.php on line 37
    Can you kindly assist.Thank you.

  115. It’s Really really work very good….
    xammp add 9080 port = config file
    Restart
    hddoc ad stock folder
    work on ow………………

  116. hi,
    Username doesnot exists

  117. Hello, when I’m trying to add a product it’s stuck in loading. I tried it on mozila and chrome and it did not work.
    Kindly update if possible

  118. Hi,
    this is really great!! It’s the best solution I’ve ever seen, however doesn`t work with IE 11 :). Could You fix it? Fortunately, I launched applications in the Chrome browser and works like a charm :). Thanks a lot. I`m really, really grateful. Great job! Regards from Poland

  119. Hi

    I can´t access, my passwd doesn´t work,
    what is the password?
    Password “password” doesn´t work.

  120. Hello What is the password of the account admin?

  121. I can’t find how to have the frontend page for visitors who need to see products, categories and brand to pay. We have dwelt only on admin that nothing is said about frontend. What is the url?

  122. your code is not completed attedence , marksheet , expense not working to submit any thing

  123. I want a project report on this system, can you provide?

  124. Para cambiar el número de IVA, todo lo que tiene que hacer es ir al archivo order.js que se encuentra en [custom / js / order.js] y buscar la función de submontaje. En la línea de 556, verá la variable de IVA, cambie el número de IVA que desea. Para cambiar el número de cuba en la parte delantera de la aplicación, vaya a orders.php y en la línea de 369, verá la etiqueta de IVA, cámbiela por el número que desee.
    556 // vat
    557 var vat = (Number($(“#subTotal”).val())/100) * 07;
    558 vat = vat.toFixed(2);
    559 $(“#vat”).val(vat);
    600 $(“#vatValue”).val(vat);
    $7%
    Amigos para cambiar el vat es recomendable poner de 13 a 07 asi cambiara el VAT si lo quieren sin valor poner 0 = 0.00

  125. Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15

    this error sir. pls help

  126. new Order is getting added with order id 0. What to do?

  127. Hello Im not able to change the VAT value in order.js file. Im changing the value from 15 to 0 but its giving me the same value calculated by 13%. Please help ASAP.

  128. I have removed the code bellow to from the product.js….but if looks like there is more to it. I need to Add a product without the product image. I want to add product information without adding product image. Even in order I dont want clients name and all.
    Please help in it
    if(productImage == “”) {
    $(“#productImage”).closest(‘.center-block’).after(‘Product Image field is required’);
    $(‘#productImage’).closest(‘.form-group’).addClass(‘has-error’);
    } else {
    // remov error text field
    $(“#productImage”).find(‘.text-danger’).remove();
    // success out for form
    $(“#productImage”).closest(‘.form-group’).addClass(‘has-success’);
    } // /else

  129. Hi,

    I would like to add “Expiry Date” to the product.

    How can I do that?

    Regards
    Ronald

  130. i cant download source file pls help me i need this project

  131. This site can’t be reachedlocalhost refused to connect.
    Search Google for localhost 9080 stock dashboard
    ERR_CONNECTION_REFUSED

    i also tried changing the port. still it doesnt redirect to dashboard.php

    can i know why??
    u can get in touch through my mail….

  132. Great Project Thank you very much for this value project

  133. I would like to get the documentation for this project.
    Can you help me with that?

  134. Добрый день я впервые услышал что в 1xbet возможно получить крутой бонус и что, для его получения, необходим специальный промокод. Какой промокод на 1xbet нужно вводить?

  135. anybody have data flow diagram and schema diagram

  136. Incorrect username/password combination

  137. Warning: A non-numeric value encountered in C:\xampp\htdocs\Stock\dashboard.php on line 15
    please help me how to remove this error

  138. hi how i change the vat code from the script

  139. sir you have done great job……
    thank you very much…..
    Allah Kareem gives you a lot of happiness and great success in your whole life Aameen

  140. Hi sir,After login it shows site can’t be reached
    how to fix it

  141. Thanks for this good work, please i have some issue, am trying to access the source code folder (stock) on xampp localhost server but the web page said this :- Access denied for ‘root’@codersfolder.com’ (using password: NO) in C:\xampp\htdocs\stock Management System Source Code V1.1\php_action\db_connect.php on line 9
    connection failed.

    Please help !!!