Hi there,
I am still attempting to get a display of the result of my two
timestamp fields subtracted from one another in minutes and hours if
needed. This is for a form and the timestamps are recorded when a user
logs in [login_timestamp] and when the form is
submitted[submit_timestamp]. The displ
timestamp']);
$completion_time = $submit_time - $login_time;
$completion_time /= 60;
$formatted_completion_time = floor($completion_time );
echo "Completion Time:";
echo $formatted_completion_time;
echo " minutes";
echo "";
On Tue, May 25, 2010 at 3:54 PM, Peter L
,
sorry for the top-posting, but I think you have to in gmail.
On Tue, May 25, 2010 at 3:14 PM, Peter Lind wrote:
> On 25 May 2010 21:09, Bruce Gilbert wrote:
>> the resulting output with that code is a little weird. I get September
>> 3, 1970 2:39:32pm
>>
>> I think pa
'Responses'.
thanks for all the help to this point.
On Tue, May 25, 2010 at 2:28 PM, Ashley Sheridan
wrote:
> On Tue, 2010-05-25 at 14:22 -0400, Bruce Gilbert wrote:
>> echo "Completion Time:". date('F j, Y
>> g:i:sa',strtotime($row['sub
e, May 25, 2010 at 12:55 PM, Ashley Sheridan
wrote:
> On Tue, 2010-05-25 at 12:46 -0400, Bruce Gilbert wrote:
>
> Here is what I currently have.
>
> echo "Completion Time:" .
> (strtotime($row['submit_timestamp']) -
> strtotime($row['login_timestamp']))/
, 30 minutes etc. Don't need the days or seconds. The MySQL
timestamp is in this format.
2010-05-17 11:32:45 - 2010-05-17 12:26:13
On Tue, May 25, 2010 at 11:11 AM, Peter Lind wrote:
> On 25 May 2010 16:14, Bruce Gilbert wrote:
>> Thanks. I know my syntax isn't quite r
Thanks. I know my syntax isn't quite right, but is this close to what
I need to do?
echo "Completion Time:" . date('F j, Y
g:i:sa', strtotime($row["login_timestamp"] - ["submit_timestamp"])/60)
. "";
On Tue, May 25, 2010 at 10:01 AM, P
Here is the situation. I have a form which sets a timestamp when a
user logs in using UPDATE in SQL. The field is called
'login_timestamp' and is in a table called 'Candidates'. I have
another timestamp which is set when a user submits the form data into
the DB and it is called 'submit_timestamp' .
can anyone reccomend an open source PHP/MySQL based image viewing
application. I am looking to store the images in MySQL and have a
viewer on the page with the option to click to the next image and
back, possibly with the display of an enlarged image as well as the
option to click on thumbnails bel
Can someoune point me in the right direction as to how (if possible)
to convert a video format uploaded to a server to a flash format
(.flv) no matter what the orginal format is?
thanks
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
I have a form on my website, that used to work, but I just realized
that now it doesn't. You don't get any errors, but I am not receiving
an email with the information after the submittal.
The form is located at http://www.inspired-evolution.com/Contact.php
and the PHP is:
[php]
\n"; // your e
I am having some difficulty getting an image to display on a php that
I have added to MySQL DB.
Here is what I have tried so far
in the MySQL DB I have a table called image_holder and the fields are
id,mimename,filecontents...filecontents field is set to a type of blob
using PHPMyAdmin and I
I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/
and was trying out variables with PGP, but can't get it to work. I
wanted to have a variable image that changes on refresh, and also set
the body color with PHP/CSS and maybe get that to change on refresh
too.
sp from
e Foo and Bar to replace the numbers they are
dereivatives of and not appear below as they are now, and I also need
to add a third condition for "FooBar" which would be for numbers that
are both divisible by 3 and 5.
thanks
On 3/7/07, Martin Marques wrote:
Tijnema ! escribió:
> O
I have a little script that prints a number out from 1 to 100
[php]
";
}
?>
[/php]
I just need to add code to print something different, say "foo" if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To
I have created forms with PHP where the information in the fields is
sent via sendmail to an email, but is there a way to have the
information extracted and a pdf form created when the user hits the
submit button?
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
am trying to accomplish something utlizing PHP. What I have is a menu
marked up as such:
About Me
Skill set
Hire
Me
Portfolio
Contact
Résumé
http://inspiredevolution.blogs.com/inspiredevolutioncom/";
title="the blog for Inspired-Evolution.com" >Blog
RSS
and then I have everything styled nic
I have a bit of PHP rotating image code and time stamp that work fine
on every page except my search page
http://inspired-evolution.com/search.php. I installed a PHP based
search engine called Zoom Search as a plug-in in Dreamweaver. Since
the code works on every other page, I am not sure why it wo
Hello,
I am looking around for a good PHP breadcrumbs navigation script that
would out put a path based on file structure. For instance if I had a
folder called Portfolio and within that folder I had a index.php file
and another file called Websites.php. When I was on the websites.php
page, the b
Sorry for the newbie question...
I did a search on php.net but didn't find my answer.
what does \r\n do as opposed to just \n?
and yes, I know what \n does.
On 11/14/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Fri, November 11, 2005 9:33 pm, Bruce Gilbert wrote:
&g
for the table name you mean like this?
$table_name =" 'Contact List' ";
On 11/13/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> Bruce Gilbert wrote:
> >> You would need to show us the SQL that was causing that error. Otherwise
> >> it
e values ('', '$_POST[f_name]',
'$_POST[l_name]', '$_POST[address1]', '$_POST[address2]',
'$_POST[address3]', '$_POST[postcode]', '$_POST[country]',
'$_POST[prim_tel]', '$_POST[sec_tel]', '$_POST[email]
me', 'lastname', 'address', '
thanks in advance,
Bruce Gilbert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't suppose you meant like this : $headers = "From:
$sender";("\r\n").
or is it without the ( )?
thanks
On 11/12/05, Marco Kaiser <[EMAIL PROTECTED]> wrote:
> Hi,
>
> try to add in your $headers linebreaks. ("\r\n").
>
> -- Marco
>
> > $headers = "From: $sender";
> >
mysql_close();
header("location: mailsent.php");
exit;
?>
The form is located here:
http://www.inspired-evolution.com/sendmailform.php
let me know if I need to provide any more information.
Thanks!
Bruce Gilbert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I now have:
* First Name:
"
id="firstname" name="firstname" type="text" value="">
but I still receive the same error:
' *Parse error*: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in *
/hsphere/local/home/bruceg/inspired-evolution.com/Con
com/Contact_Form.php>
* on line *52*
line 52 is:
" id="firstname" name="firstname" type="text" value="">
how would I fix this error?
On 10/18/05, Ford, Mike <[EMAIL PROTECTED]> wrote:
>
> On 18 October 2005 15:50, Bruce Gilbert wrote:
&
x27;email']}\n";
//send the mail
mail ($to, $subject, $msg, $mailheaders);
//display information to user
echo "Hola, $firstname!.
We have received your request for a web site review , and will respond
shortly.
Thanks for visiting inspired-evolution.com
<http://inspired-evolution.c
ne *63*
-Bruce
On 10/17/05, Minuk Choi <[EMAIL PROTECTED]> wrote:
>
> Wait a minute... you meant
>
> }
> else
> {
> echo "input.normal";
> }
> ?>" id="firstname" name="firstname" type="text" value=" $
-- Forwarded message --
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "Mark Rees" <[EMAIL PROTECTED]>
Date: Mon, 17 Oct 2005 15:12:50 -0500 (CDT)
Subject: Re: [PHP] Re: a couple of problems with PHP form
On Mon, October 17, 2005 5:32 am, Mark Rees wrote:
> --
I am trying to set up some validation for my php form with the email
field using the following code:
if(!eregi("^(.+)@(.+)\\.(.+)$",$_POST['email']))
{
$error_msg .= "Your email appears to be invalid.";
$ok = "false";
}
I am trying to accomplish not being able to enter anything other than
a va
when I put the die statment in and test the form I get, the html prior to
the form and what I put in my die statement eg:"made it to this point". The
form submits and I get the info, but I am not redirected to the Thanks page.
My question is how do I determine from this what is causing my error?
ine 168 is the one with header( 'Location: thanks.php' );
> on it.
> can anyone explain why this is happening and how to rectify?
> TIA
>
> On 10/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > On Wed, 2005-10-05 at 21:15, Bruce Gilbert wr
7; );
on it.
can anyone explain why this is happening and how to rectify?
TIA
On 10/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2005-10-05 at 21:15, Bruce Gilbert wrote:
> > thanks for the reply.
> >
> > and where on the page would that need t
thanks for the reply.
and where on the page would that need to go? Within the head tags?
and would it need to be within
???
On 10/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Wed, 2005-10-05 at 20:44, Bruce Gilbert wrote:
> > I have a form that submits and returns o
I have a form that submits and returns on the same page and works fine.
I know want to change the submission action from {$_SERVER['PHP_SELF']}
to an external thanks page so the form method would change to:
now I need to know what else I have to change in the form below to
change to get the
How would I organize this block in order to convert it into an array
for my form field names.
For instance if my field has:
Home Phone Number:
I would want something to return an error stating that the phone
number was not completed and not that t
yea, I was able to get the form to display, thanks.
On 8/11/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> Your HEREDOC appears to be messed up. On line 623 the closing identifier
> is not in first column of the line (when I cut n paste the code into an
> editor. That is a requirement fo
I don't see any missing semi-colons off hand. The error is supposedly
on line 556 in the below code:
Wealth Development Mortgage :: TEAM
HOME
CONTACT US
PAYMENT CALCULATOR
HOME
COMPANY
I get this error a lot, and think it may be an easy fix, but don't
really know what to look for.
'Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form_Test.php
on line 556'
I have a form which displays fine with html, but when I add the php
thew page is blank. I am re-using code which I have on another form so
I know it works. I was wondering if there might be something in the
PHP confuration which may be preventing the page from displaying. IE
error reporting .
Can
I guess this would help. The URL to my PHP config is
http://www.wealthdevelopmentmortgage.com/test/form_test/info.php
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I am getting this on the following code, and I am not sure what is
causing the error and need some pros to take a look at it for me.
the error is:
Parse error: parse error, unexpected '{' in
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form2.php on
line 161
here is the ENTIR
a few more questions about the submission process for a form with
option choices.
say I am using :
Purchase
Construct Home
Refinance - No Cash
Refinance - Cash
Out
is it better to use a name for value (the same as the selectio
I am getting the following parsing error and don't see it off hand.
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form.php on
line 44
here is all of the code:
if anyone
can anyone give me an idea on how to return info. from a forl pulldown menu
eg:
Purchase
Construct Home
and return that to an email address.
thanks
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Here is the entire code on the page. Now I am getting an error again...
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en-US"
lang="en-US" dir="ltr">
Form Test>
Skip over navigation
About Me
Skill set
Hire Me
Portfolio
Contact
Résumé
g, $mailheaders);
//display confirmation to user
echo "mail has been sent!";
} else if ($send =="no") {
//print error messages
echo "$name_err";
echo "$email_err";
Hello,
I am trying to get a form to work integrating html with PHP.
the code I have is:
Your Name:< /br>
< /br>
Message:< /br>
";
if ($_POST['op'] !="ds") {
// they need to see the form
echo "$form_block";
} else if ($_POST['op'] =="ds") {
//check value of $_POST['sender name']
if ($_POST
Hello,
I am well versed in coding with xhtml which requires all lower case
and am pretty much a newbie at PHP so that is why I am asking this
question.
is this acceptible
if ($_post [sender_email] == "") or does at have to be if ($_POST
[sender_email] == "")
in short, do uppercase and lowercas
d to
>
> include an ELSE bracket. Like so..
>
> if(this error || that error || some other error) {
> print error;
> } else {
> //no errors, thank them!
>print THANKS!
> }
>
> - Original Message -
> From: "Bruce Gilbert" <[EMAI
Hello,
on my web site contact form:
http://www.inspired-evolution.com/Contact.php
I am still having a few problems with the return results after filling
out the form. Basically I am wanted to return an error msg. when all
of the required fields are not filled out (those with a red *), and an
inv
Thanks guys. I am on a Mac and have BBEdit light, which is not too
great for PHP editing, from m experience.
On 7/16/05, Burhan Khalid <[EMAIL PROTECTED]> wrote:
> Edward Vermillion wrote:
> > Bruce Gilbert wrote:
> >
> >> Hello,
> >>
> >> I
Hello,
I have a form on my site
http://www.inspired-evolution.com/Contact.php
produces this error on submission
Parse error: parse error, unexpected T_STRING in
/hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line
35
here is the PHP code, please let me know if you see where
I am having trouble connecting to MySQL server through a PHP script
and I am not sure why.
the error I receive is:
Warning: mysql_pconnect(): Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES) in
/hsphere/local/home/bruceg/inspired-evolution.com/search/include/connect.php
on line 6
Hello,
I am trying to add a PHP search to my site and the read me file says to:
2. In the server, create a database in MySQL to hold Sphider data.
a) at command prompt type (to log into MySQL):
mysql -u -p
Enter your password when prompted.
b) in MySQL, type:
CREATE DATABASE sphider_db;
troub
I am testing a page that uploads a file to my server using PHP.
I get an error stating:
"Warning: copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf):
failed to open stream: Permission denied in
/hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on line
4
Could not c
Hello,
I am fairly new to PHP, and I am looking to create a search
functionality on a website using php. Can anyone point me to a good
tutorial that can walk me through this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
58 matches
Mail list logo