Forum: PHP Jul 11th, 2006 |
| Replies: 4 Views: 1,424 Just make a html image tag and call your image counter script from that tag!
// add to your html output page
<img src='/my_counter.php?page=index' height='24' width='100' alt='' />
example... |
Forum: PHP Jun 1st, 2006 |
| Replies: 3 Views: 2,774 This should be done after you create the FOREIGN KEYS/INDEXES, in your table creation! If I knew what you were exactly doing I could help you more, but I don't so have a look at this link... |
Forum: PHP Jun 1st, 2006 |
| Replies: 11 Views: 29,948 Can you post a copy of your httpd config file |
Forum: PHP Jun 1st, 2006 |
| Replies: 1 Views: 976 Anytime you use session_start();, you have to be sure it is called before any output is sent to the browser. (echo, print) or any white space will cause PHP to flush it's self, which will cause an... |
Forum: PHP Apr 26th, 2005 |
| Replies: 8 Views: 7,695 Do you have the code?
The problem is that the object method is expecting a certain type of 'VARIANT' and the one you passed is not correct. If you have the code I can show you how to fix your... |
Forum: PHP Apr 26th, 2005 |
| Replies: 9 Views: 5,515 Hi
You should be using a content length header so the browser does not add \r?\n to the stream buffer...
Also your application-x-type is wrong...
if ( strstr ( strtolower (... |
Forum: PHP Apr 26th, 2005 |
| Replies: 11 Views: 35,199 Hi
You first need the information that your school has given you to access the database...
This will include...
Database User Name
Database Password
Database Server Name
Database Server... |
Forum: PHP Jan 3rd, 2005 |
| Replies: 5 Views: 2,232 Hi
This will really depend on how you wish to control this, and also what kind of service you will use this on!
voting control...
1. if this is used in a session type service -> ie: username... |
Forum: PHP Jan 3rd, 2005 |
| Replies: 1 Views: 6,720 Hi
I don't know how you are doing it, but it should be like this!
<?
echo 102 ^ 49;
?> |
Forum: PHP Jan 3rd, 2005 |
| Replies: 5 Views: 2,232 Hi
This is very basic math
100 [%] * [each selection total votes] / [the total votes for all selections]
example
say you have 5 website in your poll |
Forum: PHP Jan 3rd, 2005 |
| Replies: 5 Views: 4,976 Hi
Turn 'OFF' (magic_quotes_gpc, magic_quotes_runtime)
You should learn to handle incoming 'FORM DATA' in your script, one should never use php.ini setting if they can control it in the script!... |