If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Anonymous
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Author Message
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
thanks for the quickfix, hope it lasts for a while.

seems you forgot to mention the add.class.php.
there's a line


where you also have to replace gb_name by gb_name123.

If you don't do, the 'submit' from the 'preview' page results in an error (seems you forgot your name)
This is my poll: http://www.emsleague.com/poll.php

How do I embedd this in the HTML home page?
Missed the cross site exploit fix. Got hit by the same jerk again. Fixed it correctly this time. Man what a pain. I would suggest removing any foreign language php files that you don't use. He turned it to russian so I couldn't tell what I was doing. (Added robots.txt, .htaccess, changed password, cross site exploit fix, removed most language files except english, added bad guy ip to deny list.) I hope this is the end of it for now.
don't remove it, be proud of using it! it's the very best (and most beautiful) guestbook I ever used.
Thank you. That really helped. I guess I should follow the isntructions for locking the guestbook down next time.
eine gute Idee, nur WIE mach ich das?
1. file extention must be 'php' not html

2. server must have php interpreter running
Ok, I've gone thru the different scriptfiles and things are starting to go better. I've also did a search for daily count as you said, and it helped a little.

Now, it looks like the script are installed correctly at my site, the table showing total visits, date and visitors today shows up. BUT: when I use the visitors link to see the table containing iformation about visitors IP adress, time and hostname, there is som malfunctions:
The table shows up in the 420*210 size. BUT:
The visitors actual time of visit, ip adr. and host isnt there, only the pre-set titles of the columns ("time, ipadress, host").
So why doesnt the program output the values of the visitors time, ip.adr and host? (I dont get error notices)


I also have another Q:
What do you recommend: MySQL or flatfiles? Whats the advantages and drawbacks with both of them?
As i understand from the file visitors.php, the file creates a file called logfile if you dont use mysql, is that right? Is this a txt file?
What will it contain?: all times, ip adress and host from todays visits, or all visits from day one or none of these suggestions?
Now I use flatfiles.

You said: "One major problem with the daily counter using the txt files is the fact that it will not reset back to "1" at the beginning of the new day - I have written a fix for that"
I believe I need this fix?
Best regards
RFM
Yes I realize I spelled Advanced incorrectly but alas, I cannot fix it.
Didn't see this problem in the FAQ post.

I designed a poll and such but when I copy the code to my page it doesn't show, it just shows the last part of the code like "poll_process(4); ?>". I'm not big on PHP so I don't quite know what I'm doing wrong. Anyone have any ideas.?





www.ticketyt0ck.com
weil die balken länger werden, solltest die balken vieleicht unter der antwort machen
Signing now
I know very well what does <form action=..> means
If only it was so simple, but it wasn't ....

You can safely delete all files from templates folder on your serwer becouse after instalation they are in mySQL base and are taken from there if neaded.
Second problem is that "vote" link is made by form method while 'result" link is made in pure html. Form method uses for example:

<form method="post" action="$this->form_forward">
You can add what you want after forward and before " to change form action but you must do it in mySQL and you have to do it each time when you want to change parameters of form action.

So the very best way is to use variables method ie. "$link" which can be changed in code of your html page, not in mySQL base through phpAdmin.
Its easy to change record in base but this is not a good way of solving that problem.

Anyway, It took me whole half of day to solve it, and I had to add procedures in class_poll.php which change parameters of index.php, as well i had to write mySQL query to change records responsible for templates of form.
Hard work, but it works now.

Now I go to sleep
that's what I want to do, I want to customize the look of my guestbook... I want to dress it up... here's a link to one that I saw http://www.lynnslilypad.net/guestbook/

They have a graphic with their name "Lynn's Lilypad Guestbook". It also appears that she has a link back to her website... how do you change the color of background and of the different comments area where people write their comments...

I am using FrontPage 2003, I am used to seeing in Preview mode what my page is going to look like... can I do that using this guestbook? I have a navigation bar on my website... can I add that to my guestbook...

When I look in the directory tree of FrontPage and click templates, I see a "gazillion" templates... which one do I work with?

thanks for your patience...
 
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Go to:   
Based on the open source JForum