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 have downloaded the advanced poll 2.0.3 from this homepage, and i have at little problem. The pollphp.zip contaians 2 folders db and textfile, but in the textfile folder, are there a readme.txt, i do everything is says. So after that i try to open my browser with http://www.yourdomain.com/poll/admin/ for installing the poll. In db and textfile are there nok folders with the name poll, so what is wrong. ?

http://www.yourdomain.com/poll/admin/

I have change "yoursdomain.com" out with my real domain

Hope someone can help me...
I have tried EVERYTHING I know.. I need help to fix this...

Fatal error: Call to undefined function mysql_connect() in D:\ear ache updated site\poll\install.php on line 666

from site www.earachefm.com
Hey guys how do I change the colors of the result bars?
I still do not understand....I guess im just a dummy
No i dont get any errors averything looks normal but i doesnt count the votes, i'll try puting it just in the index but there is any other way because i want the poll to appear in every page, and every page has an include to my menus so i need to put it in inside the menu..

and chmod are okey i checked them!!

I hope you can help

Thanks!!
I decided to delete all the code I installed to add the new form and after doing this I tried to submit an entry in my guestbood to test it and now I am getting a new error message. I don't want to have to reinstall my guestbook because I wasn't the one that installed it in the first place. I went to the addentry.phpo file and didn't see anything different than when it was working. the error message I am getting is as follows:

Query Error
--------------------------------------------------------------------------------

MySQL Error : Query Error
Error Number: 1136 Column count doesn't match value count at row 1
Date : Thu, December 2, 2004 20:11:54
IP : 68.124.97.86
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; {246BCDFE-1828-4E01-9A49-7094CE0F3A7B}; .NET CLR 1.1.4322; yplus 4.1.00b)
Referer : http://minesweeps.com/guestbook/addentry.php
PHP Version : 4.3.9
OS : Linux
Server : Apache
Server Name : www.minesweeps.com

Here is my addentry.php file:

<?php
$include_path = dirname(__FILE__);
include_once $include_path."/admin/config.inc.php";
include_once $include_path."/lib/$DB_CLASS";
include_once $include_path."/lib/image.class.php";
include_once $include_path."/lib/template.class.php";
include_once $include_path."/lib/vars.class.php";
include_once $include_path."/lib/add.class.php";

$gb_post = new addentry($include_path);
if (isset($HTTP_POST_VARS["gb_action"])) {
$gb_post->name = (isset($HTTP_POST_VARS["gb_name"])) ? $HTTP_POST_VARS["gb_name"] : '';
$gb_post->email = (isset($HTTP_POST_VARS["gb_email"])) ? $HTTP_POST_VARS["gb_email"] : '';
$gb_post->url = (isset($HTTP_POST_VARS["gb_url"])) ? $HTTP_POST_VARS["gb_url"] : '';
$gb_post->comment = (isset($HTTP_POST_VARS["gb_comment"])) ? $HTTP_POST_VARS["gb_comment"] : '';
$gb_post->location = (isset($HTTP_POST_VARS["gb_location"])) ? $HTTP_POST_VARS["gb_location"] : '';
$gb_post->ICQ = (isset($HTTP_POST_VARS["gb_icq"])) ? $HTTP_POST_VARS["gb_icq"] : '';
$gb_post->aim = (isset($HTTP_POST_VARS["gb_aim"])) ? $HTTP_POST_VARS["gb_aim"] : '';
$gb_post->gender = (isset($HTTP_POST_VARS["gb_gender"])) ? $HTTP_POST_VARS["gb_gender"] : '';
$gb_post->userfile = (isset($HTTP_POST_FILES["userfile"]["tmp_name"]) && $HTTP_POST_FILES["userfile"]["tmp_name"] != "") ? $HTTP_POST_FILES : '';
$gb_post->user_img = (isset($HTTP_POST_VARS["gb_user_img"])) ? $HTTP_POST_VARS["gb_user_img"] : '';
$gb_post->preview = (isset($HTTP_POST_VARS["gb_preview"])) ? 1 : 0;
$gb_post->private = (isset($HTTP_POST_VARS["gb_private"])) ? 1 : 0;
echo $gb_post->process($HTTP_POST_VARS["gb_action"]);
} else {
echo $gb_post->process();
}
?>
WOW. Okay, I figured it out.

I reset all my directories or folders or whatever to what they were before I tampered with them. Then I changed the two that you just mentioned and only those two. It still wasn't working, so I was like what the heck. So I took everything out of my "counter" folder and stuck it in the same directory as my xmas2 document. I made an xmas2.php in addition to my xmas2.htm and both seem to be working with the counter. (Why, I don't know, but as long as it's running I'm happy!)

THANK YOU ALL FOR HELPING ME FIGURE THIS OUT. I think I have a better understanding of PHP and my control panel. Thankyouthankyouthankyou!

And do us a favour, tell your hosts that if they are going to provide their users with FREE scripts as an enticement to try and lure newbie web designers then the least they could do is provide the actual instructions that came with it. I almost had a go at my hosts why I saw they were offering Guestbook 2.3.1 but thankfully it's not this one lol.
See, the problem is, I didn't just order AdvancedGuestBook; I have Total Choice Hosting, and it comes with the option to install AdvancedGuestBook, as well as some other software. So I don't have a readme.txt. When I install the software on my site, it just takes me to the index.php for my AdvancedGuestBook. (Sorry if this sounds like a lot of trouble...)
And it looks like changing the permissions on the whole "counter" folder to 777 doesn't change anything, either.

Arg, I must have messed up something.
Carbonize wrote:hmmmmm try count.txt 777 (drwxrwxrwx)


Inside the file or in the File Manager? If I try to change permissions on that one file, I get a message saying:
  • Unable to change directory to /home/thedesig/public_html/shitpile/counter! You do not seem to have access permissions! (System Error: Permission denied)
  • Carbonize wrote:And yes, a search of this site would of found you the thread you wanted.


    Sorry, I did search and I saw two of the three pages amber posted. Believe me, if I could have searched and figured this out on my own I would have -- no offense, but help from a forum is not always guaranteed. Sometimes people just don't respond or take too long to respond.

    I want answers now, darnit!
    Okay, it's still not working.

    http://www.thedesignthatcould.com/shitpile/xmas2.htm

  • Installation:

    Give write permissions on the directory and on the counter file.

    - pages 777 (drwxrwxrwx) (directory)
    count.txt 666 (-rw-rw-rw)


  • I went into the CPanel and changed my permissions. My directory (shitpile?) is set at 777 and my counter folder (counter) is set at 666. The first counter on the bottom is the one I was trying to do, and the one below it is me trying to copy and paste the cold that amber suggested in one of those posts.

  • <tr>
    <td align="center" height="100"><img src="counter.php?page=xmas2.htm&digit=scoreboard" alt="Counter" border="0"></td>
    </tr>


  • Except, of course, I changed the name of the page to the one the counter is on. I also tried moving "config.inc.php" and "counter.php" out of the counter folder, into the public_html folder (didn't work) and into the shitpile folder (didn't work either).

    Did I do something wrong? I'm sorry, this is my first time trying to use php.
    amber222 wrote:Referring to the information on the site that was asking for help - "have a !@&%y Christmas." I was just stating that if I believed in Christmas I would probably be offended.

    As far as Christmas paganism, that's a topic having nothing to do with the scripts on this site. However, I would love to discuss it if anybody is interested. Your site forum or mine?


    Hey, it's a punk rock comp. Love it or hate it, the title works.

    But thanks for the help.
    hey,, i have the guestbook working nicely.. but i dnt know how to edit the page for example just change some of the images around etc.. and i dnt know how to put it witin the table structure of my website..

    can sum1 help??

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