Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Nash
Regular
Regular



Joined: Jan 10, 2006
Posts: 93

PostPosted: Mon Apr 10, 2006 5:10 pm Reply with quote

Hey guys,

so I'm trying to do a sql database call from within my theme.php file. I tried declaring global variable $db but with no luck. Anyone know how to do this? Is there a file I need to require or something?

--- Nash
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Apr 10, 2006 10:17 pm Reply with quote

$db should be working.. what does your code look like?

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Nash







PostPosted: Tue Apr 11, 2006 10:40 am Reply with quote

got it, nice. I needed to include $dbi as well and then I had a stupid error somewhere else.

Now I have another formatting issue to contend with. I may post later to see if anyone has a solution. Thanks!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©