Open creptor opened 9 years ago
Sry I made an mistake. I fixed this post for the wamp users.
Ok so installed the new xampp but I messed it up. How do you properly install it? Because I uninstalled the old one and installed the new one after but it still had the original xampp folder so i called the new one xampp new. Afterwards I pasted my website folder from the old htdocs and put it in the new htdocs. Now this shows up when I try to open my website:
You need to make sure you give your mysql user the correct permission to use the database.
sigh.. I'm gonna have to rebuild my mysqli again from scratch. It seems that I may have deleted it when trying to install the new xampp :'|. It's my fault. i should of asked on how to properly install it first
You know what, I'm just gonna start over. Because i can't figure out what to do here and I'd rather just have a fresh start. Plus I forgot how to do a lot of things so redoing everything will help me remember. I'm gonna try my best to finish to redo it in a week or two.
@Chriswilldo maybe you should try to use your root user. It's literally named 'root' by default and there shouldn't be any problems in localhost things :smile:, also it should work with other users, but in localhost you shouldn't have problems with that. So the dbconnection file should be like this:
<?php
//database connection info:
$host = "127.0.0.1";//or localhost ,either should work
$database = "{DB TABLE NAME HERE}";
$user = "root";
$password = "";
$dbc = mysqli_connect($host, $user, $password, $database) or die(' An error ocurred when contacting the database, please try again.');
?>
This issue is common so I'll bring some steps on how to fix it. First of all, some notes:
NOTES:
Guide:
C:/xampp/apache/conf
orC:\wamp\bin\apache\apache2.4.9\conf
httpd.conf
with the apropiate files for xampp or wamp (The wamp or xampp aplication must be installed under your C: drive directory).htaccess
file. (And make sure it's correctly named)sandbox.php
file (should be inside functions) and verefy that this code is exacly the same: (the spaces don't matter, just to keep this small)If you clomplete this task, the cleans urls should now work, if they work but you don't see the page, then check the index.php, it should have this
<?php include('views/'.$view['name'].'.php');?>
and your data.php (inside functions) should have this: