Friday, August 29, 2008

General information & doubts in Javascript and PHP

Hai all,

Simple show hide sample using Show/Hide?

Simple Show/Hide code

12 comments:

Raja said...

why png alpha transpanecy is not supporting in < ie6 versions

dreamcoincollection said...

Hai raja,

We have found a solution for your Alpha transparancy problem in IE browser,

Solution:
- IE PNG Fix v1.0 / 2.0 Alpha 3
- Sample code - http://www.twinhelix.com/css/iepngfix/

- Demo - http://www.twinhelix.com/css/iepngfix/demo/

Thanks & Regards,
yourfriend

Unknown said...

Thanks for quick reply. This code is working fine

vadivel said...

what is difference between OS Commerce and ZenCart?

vadivel said...

what is difference between overload function and override function?

vadivel said...
This comment has been removed by the author.
dreamcoincollection said...

Hello vadivel,
here some

Difference between oscommerce and zencart


Thanks and regards,
yourfriend

vadivel said...

What is means by IMAP,POP3 and NNTP functions?

Unknown said...

how to create fixed size thumbnails?

Unknown said...
This comment has been removed by the author.
Unknown said...

How to find the hit count of a site using PHP?

dreamcoincollection said...

Hai siva,

Suggestion for Hit count:

1. Create table to store the
hit counts into Database.

2. That table having the fields like
(a.) auto_increment_id (Primary Key)
(b.) file_name
(c.) user_ip_address
(d.) date_time_visit

3. Write an INSERT query to insert a record into the Database
Query: INSERT INTO table_name
SET file_name = 'VALUE1',
user_ip_address = 'VALUE2',
date_time_visit = 'VALUE3'

VALUE1 -- basename($_SERVER['PHP_SELF'])

VALUE2 -- $_SERVER['REMOTE_ADDR']

VALUE3 -- date('Y-m-d H:i:s')

4. VALUE1 is used to store for which filename visited by the user

5. VALUE2 is used to store the IP address of the visited user

6. VALUE3 is used to store the visited time of the user

7. Write the INSERT in (STEP 3) on your common areas
i.e. Header or Footer or leftpanel, or other regions loaded every time on every files in our site

8. If you want Total number of hits of all the files i.e. our entire site ?

Query : SELECT count(auto_increment_id) FROM tablename

this query answers for this question

9. Total number of hits for a particular file i.e. login.php

$current_filename = basename($_SERVER['PHP_SELF']);

Query: SELECT count(auto_increment_id) FROM tablename WHERE filename = '$current_filename';

this query answer for this question

Conclusion:
I hope you got some idea about getting the hit count using PHP..

Thanks & Regards,
yourfriend

Popular Posts