sombody help me with the tuturial? |
[eluser]ohale[/eluser]
Hi, I am a little bit into the tutorial and i have just got these errors. I dont know what i have done wrong. I just want someone to help me make seance of it. Just started out. I have created my database in phpMyAdmin and am running the project locally from mamp. i got these errors, Quote:A PHP Error was encountered this is my code for blog_view Code: <html> and this is my code for blog Code: <?php I would really appreciate a kick in the right direction.
[eluser]ohale[/eluser]
probably something simple and stupid! but i cant see it
[eluser]Eric Barnes[/eluser]
It sounds like it can't connect to your database: Quote:A Database Error Occurred
[eluser]ohale[/eluser]
I have done this Code: $db['default']['hostname'] = 'localhost'; and also this Code: $autoload['libraries'] = array('database');
[eluser]Eric Barnes[/eluser]
Are you sure those values are correct? The script is telling you what is wrong so it must be one or more of those are incorrect.
[eluser]ohale[/eluser]
im really not sure!. im useing phpMyAdmin with Mamp i dont really know what elce i need to do to connect it.
[eluser]Eric Barnes[/eluser]
Open your mamp start page and it will show the default username and password for mysql. http://localhost:8888/MAMP
[eluser]ohale[/eluser]
gawd i feel so stupid! thanks a bunch mate. I really appreciate you taking the time to look at it 4 me. |
Welcome Guest, Not a member yet? Register Sign In |