Hi ddtpmyra,
There are two steps to this solution:
1. Properly gathering the data
[code=html]
<html>
<form action='checkbo xread.php' method='post'>
<input type='checkbox' name='field[]' value='1' checked ='True'> Field 1<br>
<input type='checkbox' name='field[]' value='2'> Field 2<br>
<input type='checkbox' name='field[]' value='3'>...
User Profile
Collapse
-
Onclick you change the action value of the form ;)
[code=html¨]
<html>
<FORM action="mulsub1 .php" method="post">
First name: <INPUT type="TEXT" name="FNAME"><B R>
<INPUT type="submit" name="bsubmit" value="Submit 1" onclick="action ='mulsub1.php'; ">
<INPUT type="submit"...Leave a comment:
-
You have very interesting assignments at your work ...
Here is my understanding of the situation:
you need to render either the main ad or a secondary add based on the click_through percentage.
On the long run and with thousans of cases, a random function will give you "roughly" the breakdown that you are looking for. But you are concerned with the randomness of the approach and would like to...Leave a comment:
-
We found the solution and we learn in the process, that's the objectve. ... BTW I had a bug see correction below (one line) .
[code=php]
for ($i=0; $i<=23; $i++) {
if ($i<12) {
$ampm ="AM";
$ampm_hour = $i;
}
else {
$ampm ="PM";
// $ampm_hour = $i - 12; // my mystake IT GIVES 00:00PM FOR 12:00 pm
...Leave a comment:
-
Hi bnashenas1984,
I proposed a new solution that addresses 3 issues I found in your script:
NOTATION:
Issue 1. you based your solution on the premise that 13:00PM to 23:00PM is fine, which is not; 01:00PM to 11:00 PM is the proper notation.
PERFORMANCE:
Issue 2. Running 24 individual queries to retrieve the results for one day. Unnecessary overhead and could be significant...Leave a comment:
-
Here is the code you need ... I tested it woks
enjoy !!
[code=php]
<?php
$ampm_hour=0;
$data=array();
// intial load of the hours of the day , count will be set to 0
for ($i=0; $i<=23; $i++) {
if ($i<12) {
$ampm ="AM";
$ampm_hour = $i;
}
else {
$ampm ="PM";...Leave a comment:
-
Hi bananahead, here is a simple query that could do the trick for you.
[CODE=mySQL]
SELECT DATE(date_to_ev aluate),
date_format(date_to_evalua te, "%h:00 %p") as 'hour',
count(*)
FROM `store_shoppert rack`
GROUP by DATE(date_to_ev aluate), hour(date_to_ev aluate);
[/CODE]
DATE_FORMAT parameters:
// %M = MONTH full...Leave a comment:
-
I tried the sample code and it works fine!
If you try to load pictures.php and are not logged in yet, it redirects you to the login page (index.php) in this case.
When you successfully log in, you are redirected to pictures.php which will show your page. Adding a logout link to logout.php will clear the cookie settings when the users links to it. The next time the user tries to load pictures.php, he/she will be redirected...Leave a comment:
No activity results to display
Show More
Leave a comment: