herghost Posted November 17, 2007 Share Posted November 17, 2007 Hi all, I am installing a script and am having a bit of a problem. Im am getting this error in ie Fatal error: Call to undefined function db_connect() in /home/bromi/public_html/book.php on line 26 on a page but it does not appear when the page is viewed in flock/firefox. the page is www.bromientertainment.co.uk/book.php, which is a copy of www.bromientertainment.co.uk/index.php which pulls a php page called maincontent.php. I basically want to keep the layout of the index but with different content. So I copied all the code in the original maincontent.php and renamed and placed it in the same directory. So when /index1.php is called it should load the file in book.php (which is a copy of the maincontent.php page) I think i need to define a global call but I dont know how to do this or where to do this! any help or hints would be greatly appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/77737-solved-absoloute-novice-needs-help/ Share on other sites More sharing options...
~n[EO]n~ Posted November 17, 2007 Share Posted November 17, 2007 I think there is some path error in your page. Can you show your code. Link to comment https://forums.phpfreaks.com/topic/77737-solved-absoloute-novice-needs-help/#findComment-393493 Share on other sites More sharing options...
aim25 Posted November 17, 2007 Share Posted November 17, 2007 Have you made a function called db_connect()? Link to comment https://forums.phpfreaks.com/topic/77737-solved-absoloute-novice-needs-help/#findComment-393494 Share on other sites More sharing options...
rarebit Posted November 17, 2007 Share Posted November 17, 2007 Can you connect to mysql at all? See http://www.phpfreaks.com/forums/index.php/topic,95378.0.html Link to comment https://forums.phpfreaks.com/topic/77737-solved-absoloute-novice-needs-help/#findComment-393496 Share on other sites More sharing options...
herghost Posted November 17, 2007 Author Share Posted November 17, 2007 thanks for all your replies so quickly, I have worked it out it turns out I was trying to call book.php directly as opposed to calling index1.php . Link to comment https://forums.phpfreaks.com/topic/77737-solved-absoloute-novice-needs-help/#findComment-393497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.