Yes the user's ip address and the dates on which they were online are being tracked into a database.
But the issue here is the system time is static(seconds) and the seconds value does not increment without refreshing the page each second. But when i refresh the page entire index.php is refreshed every second which i do not want it to happen.
I tried using using a javascript digital clock script even but again with this,it...
User Profile
Collapse
-
Yes i am.. i want to send a mail containing the list of users online on my website at 12:00 am everyday. And i want this script to run on the index.php page along with many other scripts and it should be invisible to the users browsing my website.Leave a comment:
-
thanks but i would want to mail admin without the user's knowledge who's browsing the site. How do i do that?
Here's the code:
[PHP]
<?php
ob_start();
//header("refresh :01;");
require "Mail.php";
// get the current timestamp into an array
$timestamp = time();
//echo strftime('%H:%M %A %d %b',$timestamp) ."<br>";...Leave a comment:
-
How to refresh only a part of the script instead of the entire page
Hello All,
I have written a script that sends a mail to the administrator of the website at the end of the day. To do this i am checking whether system time is equal to the set time (this is the time at which i want to send the mail to the admin), and if the condition satisfies, i am sending the mail.
But i am stuck with this. To send a mail, it should check each time whether the system time equals set time or not, if... -
i got the working of the mail but i need to know how do i sent it only once in a day i.e preferably all the users online throughout the day and their corresponding addresses needs to be sent to the administrator everyday.. I have the system date. Any help?Leave a comment:
-
dream2rule started a topic Send mail listing the maximum number of users online on a particular datein PHPSend mail listing the maximum number of users online on a particular date
Hello All,
I have a table where i am maintaining the users' ip address and the date when they are accessing the website.
so its like i have 3 fields in the table like
ip_id - auto_increment not null primary key
ip_address - holds the ip address of the user browsing the site
date - the particular date when the user was online on the website
I now need to get the entire list... -
-
Tried doing it this way but it does not help. :(
...Code:for ( var i=0; i < document.getElementsByName("priviliges[]"); i++) //priviliges is the name of the group of checkboxes { if (document.getElementsByName("priviliges[i]").checked) { var priviliges_checked[i] = document.getElementsByName("priviliges[i]").value; } }Leave a comment:
-
validate multiple checkboxes using javascript
Hello All,
I am trying to validate multiple checkboxes whose values are stored in an array using php. I have been trying from a really long time but nothing's working out.
Can anyone help?
Here's the code:
...Code:<form id="create_user" name="create_user" method="post" action="creating_database.php" onsubmit="return validate_create_user_form();">
-
tried the same but it is not printing the fld_name at all..
nothing is getting displayed :( :(Leave a comment:
-
if i give "dream2rule " in the $fld_name, then after post and printing it, i get just "dr"
I need to get complete "dream2rule " :( :(...Leave a comment:
-
When i retrieve it something like
$fld_name = $_POST['fld_name'][$i]
i get the characters of the last fld_name!!
This is not taking me anywhere.
I would just like to show what i have got after retrieving the posted values.
[PHP]
if(isset($_POST['create_table_s ubmit']))
{
$table_fields = "";
for($i=0; $i < $num_flds;...Leave a comment:
-
Retrieving the posted values from a form in PHP
[PHP]
<form action='' method='post' name='create_ta ble_form' id='create_tabl e_form' >
<table border='0' cellpadding='0' cellspacing='0' width='95%'><tr ><td><br />
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr><td> D atabase Name:</td>
<td><input type='text' name='db_name' size='20' value=<?php echo $db_name;...
No activity results to display
Show More
Leave a comment: