I have a weird issue on my site. When I want to access the images in folders they don't show up. I've tried everything but I don't understand.
My CSS is also not working because my text is not changing. It's only working when I go to the main page.
I have 2 pages, for example, /contact/ and /about/. These don't work.
Here is the full listing of my folder.
/ui/images/logo.jpg (etc...)
/ui/css/site.css
/javas/site.js
/index.php
here my script (i removed some useless stuff)
<?php
$page = $_GET['page'];
$conn = mysql_connect("localhost", "user", "password");
mysql_select_db("page");
$sql = "SELECT * FROM page WHERE page = '".$page."'";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
mysql_free_result($result);
?>
<html>
<body>
<script type="text/javascript" src="javas/site.js"></script>
<link rel="stylesheet" type="text/css" href="ui/css/site.css">
<?php echo $row['page']; ?>
</body>
</body>
What can I do to fix it?
Try using full path like:
http://your_host/your_project/javas/site.js
Hope it helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With