Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
18/02/2005 10:14:42
|
Anonymous
|
I am using a page called global functions that contains a header and footer function. for my index page, I call this function to display the top and left (header function) and the right side and bottom (footer) and the index page is just the content for the middle.
I want to place the poll on the right column side but every time i place it in the global functions page i get the database error 1046 - no database selected. If I take my code to call the poll and place it just in the index page and have none of it called up through the global functions page, it works. So I am thinking that it cannot be called in another function for some reason? I have other php code in the global functions that works fine. I have a usersonline script, a script that finds when my last updated file was updated. I have spent hours and hours trying to figure this out.
If you guys cannot help then i will be forced to use some other cheap poll script. There is barely any good poll scripts out there that are free.
my connection code i use is:
Someone who knows what the hell they think i am talking about pleeeeaaaassee help me
I knew c++ about 5 years ago and I am teachin myself php the hard way... guess and check! lol
Thanks,
Aaron
|
|
20/02/2005 08:07:22
|
Anonymous
|
n/m guys... i just used a different poll script and edited the script to suit my needs. I was having the same problem with this other script as I had with the Advanced Poll. However, I fixed the problem with this other one and I repeated the same process with the Advanced poll script and still got the same error... drove me nuts.. oh well.. if anyone ever wants to attempt to help me.. maybe i will consider switching back.
-AKeith
Once lost but now can see clearly.
|
|
|
|
|
|
Based on the open source JForum
|