I can’t display img, here is my page:
https://motoportal.000webhostapp.com/
Logo:
<a href="index.php"><img src="../public_html/img/logo9.JPG" alt="Logo"></a>
Logo9 path:
/public_html/img/logo9.JPG
Where is the problem?
Second problem:
This is my first page and database is not working, why? Where is the problem? I used xampp mysql, should i change it to something else ? I am begginer thanks for your help !
Database is working fine, check your credentials using PDO method
Introduction
You can create databases on 000webhost.com and PHP can be used to connect to those databases. This tutorial explains three different methods how that could be achieved. Most of the websites need to have at least one database and if you are developing a website from the beginning you will have to connect it to a database manually, here you can find how that could be done step by step.
What you’ll need
Before you begin this guide you’ll need the following:
Understanding of PHP synt…
You do not need to include the public_html path
Your website appears fine currently however.
Infinity
Closed
January 18, 2021, 6:00pm
#4
This topic was automatically closed after 22 hours. New replies are no longer allowed.