Jump to content


Connection to MySql Problems


2 replies to this topic

#1 CoryMathews

    P2L Jedi

  • Members
  • PipPipPip
  • 554 posts
  • Gender:Male
  • Location:Texas

Posted 26 August 2007 - 01:59 PM

I have my site set up using quite a few includes. like my index.php page is just 7 includes. One of the includes is for a nav bar that appears on the left. It pulls the links from a table in my database. Problem is that it will connect the first time i load the page and work like it should.
But then if i go to another page say the software downloads page and then click to go back to the home page(not the back button but the actual home button) it fails to load saying it cannot connect to my database.

heres my site...
osguide.net


Any ideas?

#2 Edmachine

    Young Padawan

  • Members
  • Pip
  • 44 posts
  • Gender:Male
  • Location:Latvia

Posted 26 August 2007 - 02:50 PM

From Software downloads, the link to home is http://localhost/osguide/index.php

There is a problem. It links to my server, not yours, you must change it to http://osguide.net/... for the link to go to your server, not mine.


EDIT: I went from Software downloads to articles...
Warning: main(./inc/connect.php): failed to open stream: No such file or directory in /home/content/d/m/a/dmathews/html/osguide/inc/navBar.php on line 21

Edited by Edmachine, 26 August 2007 - 02:52 PM.


#3 CoryMathews

    P2L Jedi

  • Members
  • PipPipPip
  • 554 posts
  • Gender:Male
  • Location:Texas

Posted 26 August 2007 - 03:35 PM

lol how retarded of me. thx. its always somethin small.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users