Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > Scripts & Fantastico

Notices

Scripts & Fantastico Discussions, help and troubleshooting scripts included is adding popular Fantastico scripts to your website such as guest books, osCommerce shopping cart, polls, content management systems etc…

Reply
 
LinkBack Thread Tools
  #1  
Old 10-11-2007, 10:01 PM
coffeegourmet's Avatar
Second Lieutenant
 
Join Date: Feb 2007
Location: Brantford, Ontario Canada
Posts: 120
Send a message via ICQ to coffeegourmet Send a message via MSN to coffeegourmet
Default Need Help with PHP Surveyor

I installed the PHP Surveyor found in my Fantastico panel on my My Coffee Gourmet site. I installed it to a "survey" directory. It installed okay I think so I created a survey. When I tried activating it and going to it, it came up with:

Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
I have no idea what it means. The admin panel tells me that the url for my survey is http://mycoffeegourmet.com/survey/index.php?sid=1

Does anyone have an idea as to why this is happening?

Also on a side note, is there a way to make this or any surveys in Fantastico a pop up when they click off my site? I would love to do that.
__________________
My Coffee Gourmet -I offer discounts to forum members, so pm me for the discount code!

We Have Picnic Baskets - Your stop for picnic baskets, picnic backpacks, NCAA Logo Merchandise and more! PM me for a discount code!

"What you not give up, No one can take from you!" - Our motto from our two month long strike this summer!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 10-11-2007, 11:42 PM
coffeegourmet's Avatar
Second Lieutenant
 
Join Date: Feb 2007
Location: Brantford, Ontario Canada
Posts: 120
Send a message via ICQ to coffeegourmet Send a message via MSN to coffeegourmet
Default Re: Need Help with PHP Surveyor

Okay I went and changed surveys anyhow... I am now using the PHPESP survey from Fantastico. I think it will look better because it will go right on my site.

However, I am getting a PHP error when I publish, any ideas on how to fix it?

Here is the script that it said to put in the html box on the page:

Quote:
<?php $sid=2; include("/home/kngxsdql/public_html/mycoffeegourmet/survey//public/handler.php");?>
To see the page and the error go here:

http://www.mycoffeegourmet.com/survey.php

I do still want a pop up survey as well if anyone has done it before.
__________________
My Coffee Gourmet -I offer discounts to forum members, so pm me for the discount code!

We Have Picnic Baskets - Your stop for picnic baskets, picnic backpacks, NCAA Logo Merchandise and more! PM me for a discount code!

"What you not give up, No one can take from you!" - Our motto from our two month long strike this summer!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 10-12-2007, 03:00 AM
Watdaflip's Avatar
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,643
Default Re: Need Help with PHP Surveyor

The problem is being caused by the script trying to send the page headers, but it isn't being executed until after the page send the headers. Probably the easiest way to fix it would be to copy and paste the code from the file that is getting included, so you can move the code that has to be executed before any output, and then still have the content display where you want it.

Sorry its hard to explain. Before you go through the trouble you might want to just try placing that code on a blank page and uploading it to your website, and then using a frame, or iframe linked to that page.
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 10-12-2007, 05:03 AM
coffeegourmet's Avatar
Second Lieutenant
 
Join Date: Feb 2007
Location: Brantford, Ontario Canada
Posts: 120
Send a message via ICQ to coffeegourmet Send a message via MSN to coffeegourmet
Default Re: Need Help with PHP Surveyor

Okay so what you are saying is that is connected to my header being in php? If that is the case, could I not just put the header as an image, and the code should execute than? Or is it all my of my php that is causing it (header, footer, menu, specials)? What if I did not use php all, just make an html page with the same look and feel as the rest of the site?

In the alternative, you mention something about frame or Iframe, how do you do that? That is a term that I am not familiar with.

Edit to add: the script for the survey is contained an html box on the page, not in the "View Page HTML" part, if that clarifies or makes a difference in things.
__________________
My Coffee Gourmet -I offer discounts to forum members, so pm me for the discount code!

We Have Picnic Baskets - Your stop for picnic baskets, picnic backpacks, NCAA Logo Merchandise and more! PM me for a discount code!

"What you not give up, No one can take from you!" - Our motto from our two month long strike this summer!

Last edited by coffeegourmet; 10-12-2007 at 05:05 AM. Reason: Forgot to add something
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 10-12-2007, 05:03 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,033
Default Re: Need Help with PHP Surveyor

It is hard to explain, as Watdaflip said. because not only it has to do with headers already been sent out, but also because you have to use a div to set the position in the page. By headers we don't mean the ones you created in php, we mean the output to the screen, caused anyway by your html code. You see, your script uses sessions, and sessions need to be sent out before anything else. An iframe would be the easiest solution to solve your problem.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 10-14-2007, 04:31 PM
coffeegourmet's Avatar
Second Lieutenant
 
Join Date: Feb 2007
Location: Brantford, Ontario Canada
Posts: 120
Send a message via ICQ to coffeegourmet Send a message via MSN to coffeegourmet
Default Re: Need Help with PHP Surveyor

Okay I figured out how you do an iframe but it asks for a url, what do I put in there for the survey to make it come up? I tried putting in the php code but that didn't work either. Please help!
__________________
My Coffee Gourmet -I offer discounts to forum members, so pm me for the discount code!

We Have Picnic Baskets - Your stop for picnic baskets, picnic backpacks, NCAA Logo Merchandise and more! PM me for a discount code!

"What you not give up, No one can take from you!" - Our motto from our two month long strike this summer!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 10-14-2007, 04:38 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,033
Default Re: Need Help with PHP Surveyor

The URL of your suvey script, probably http://mycoffeegourmet.com/survey
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 10-15-2007, 11:14 AM
coffeegourmet's Avatar
Second Lieutenant
 
Join Date: Feb 2007
Location: Brantford, Ontario Canada
Posts: 120
Send a message via ICQ to coffeegourmet Send a message via MSN to coffeegourmet
Default Re: Need Help with PHP Surveyor

Naval,

I tried that but it didn't work.. now the page is coming up completely blank! Maybe I should just try an external link to it, and forget about putting it on a web page altogether?
__________________
My Coffee Gourmet -I offer discounts to forum members, so pm me for the discount code!

We Have Picnic Baskets - Your stop for picnic baskets, picnic backpacks, NCAA Logo Merchandise and more! PM me for a discount code!

"What you not give up, No one can take from you!" - Our motto from our two month long strike this summer!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 10-15-2007, 11:16 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,033
Default Re: Need Help with PHP Surveyor

Not sure. The link http://mycoffeegourmet.com/survey takes me to a login page, the same should also appear in the iframe.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 10-15-2007, 11:21 AM
coffeegourmet's Avatar
Second Lieutenant
 
Join Date: Feb 2007
Location: Brantford, Ontario Canada
Posts: 120
Send a message via ICQ to coffeegourmet Send a message via MSN to coffeegourmet
Default Re: Need Help with PHP Surveyor

Okay now this is weird! I tried 3 or 4 times today to get it to work, it is blank! I try typing in http://www.mycoffeegourmet.com/survey.php and BINGO now it comes up!! I guess it just didn't click right away or something! I should be okay now though!
__________________
My Coffee Gourmet -I offer discounts to forum members, so pm me for the discount code!

We Have Picnic Baskets - Your stop for picnic baskets, picnic backpacks, NCAA Logo Merchandise and more! PM me for a discount code!

"What you not give up, No one can take from you!" - Our motto from our two month long strike this summer!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:14 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54