Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 18th, 2001, 03:33 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
graphics not showing

I tested your codes, everything works fine but graphics not showing, what will be the reason ?
is it because it is just a single response?

Reply With Quote
  #2  
Old April 18th, 2001, 09:32 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Image problems too

Yup...have the same issue. I've checked the code for HTML issues and it all looks right. I've also chmod'd the image to 777 - nothing can stop it there.

Seems to be in the code that is generating the image...I'll keep looking, but it's not obvious to me yet...

Reply With Quote
  #3  
Old April 18th, 2001, 09:36 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Image problems too

Should have added this to the first message - the code works perfectly! I've just installed this on my OSX box with PHP and MySQL and it just ran. Now to take it apart and play with things...

This is a great way to learn - Thanks DevShed!!

Reply With Quote
  #4  
Old April 18th, 2001, 11:41 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: graphics not showing

You need to make sure that your version of PHP includes support for image generation via the GD library. If not, image generation will fail.

icarus, Melonfire
http://www.melonfire.com/

Reply With Quote
  #5  
Old April 19th, 2001, 12:38 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: graphics not showing

<p><pre><font color=#008000><xmp>

echo

Reply With Quote
  #6  
Old April 19th, 2001, 09:51 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Graphics

<p><pre><font color=#008000><xmp></xmp></font></pre><p>
<!-- Code -->
<p><pre><font color=#008000><xmp></xmp></font></pre><p>
<!-- Code -->
<p><pre><font color=#008000><xmp>
$barlen=200;
$barheight=10;
<IMG SRC=

Reply With Quote
  #7  
Old April 20th, 2001, 01:03 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
it worked, Thanks

yes, it worked as you suggested.
Thanks

Reply With Quote
  #8  
Old April 20th, 2001, 03:46 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
can it be done in....asp or javascript?

Could this polling be done in ASP and or JavaScript?

A simple 'yes' is not enough :)

Reply With Quote
  #9  
Old April 20th, 2001, 04:53 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: can it be done in....asp or javascript?

ASP> You're probably better off checking with an ASP board (not to sound rude). I have no experience with ASP

Javascript> No. You can't store the state
of the poll (that I know of) between people.
if there's only one person doing the poll,
then yes (Cookies?). Javascript that allows
writing to the server side would probably
be .jsp (that may be possible). Java would also be possible (Drag/Send data to specialized 'daemon' - which I guess in hindsight,could be done via Javascript too) - but again This would not be a pure-javascript solution (but it CAN be a pure-java solution. Client/Server model.

Reply With Quote
  #10  
Old April 20th, 2001, 10:54 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Can this be adapted for multiple questions? How?

Hi,

This is a great example of a single question poll...but what if I wanted to ask a bunch of questions from the user?

mto

Reply With Quote
  #11  
Old April 20th, 2001, 03:07 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
substitute for GD graph

I wrote a poll script a while back, and I used an alternative to the GD graph in this tutorial. Create any colour of a 1x1 image, and when you show results it made the width of the image the integer of the percentage, and filled in the rest with a gray pixel image. It's a great alternative to people without GD image creation software.


Reply With Quote
  #12  
Old April 20th, 2001, 06:04 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: substitute for GD graph

The easiest way to produce a bar graph is this:
<img src="image.gif" width="<? echo $width; ?>" height="10">

where image.gif is a 1x10 pixel gif.


Reply With Quote
  #13  
Old April 21st, 2001, 01:07 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Can this be adapted for multiple questions? How?

Yeah, you'll need to do a bit of modding, but it isn't too tough. Here's what I did on devexplore.com, I coded my entire poll script.

Instead of creating a question column for each question, instead just create a TEXT column. This column can be filled with a bunch of questions. Then, all you have to do is separate each question in the text by some token terminator, like newline (\n). So, the question TEXT column would look something like 'Yes\nNo\nSometimes\nRarely'. Then, all you have to do is split the column up using split( "\n", $question ) and you're set. The only other thing is that you will need another TEXT column to store the number of votes. Just follow the same method.

Check out my site with my poll, www.devexplore.com

-John

Reply With Quote
  #14  
Old April 23rd, 2001, 12:20 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Can this be adapted for multiple questions? How?

Thanks John,

I'll check it out!

mto

Reply With Quote
  #15  
Old April 26th, 2001, 01:50 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
no graphics

We shoud use only tables.
tables whith 2 colums and 1 rows, instead of image, and we will add a bgcolor to one of teh cells and it will be OK... :)

good luck.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Democracy, The PHP Way


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT