Thanks Jim, worked like a charm.
> -Original Message-
> From: Jim Lucas [mailto:li...@cmsws.com]
> Sent: Thursday, June 07, 2012 4:08 PM
> To: Jack
> Cc: PHP
> Subject: Re: [PHP] help with query
>
> On 06/07/2012 09:37 AM, Jack wrote:
> > $query = "select a.startdate, a.articleid, c.name,
>
>
> How about a little debugging here (and possibly elsewhere):
>
> if (isset($pubdate) && ($pubdate >0)) {
> $pubdate=strtotime($pubdate);
> } else {
> die("Barf. Can't run a string to time conversion on 0 or -1.");
> }
>
Thanks Kevin,
This bombs
> -Original Message-
> From: Robert Cummings [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2008 10:02 PM
> To: Joey
> Cc: PHP
> Subject: RE: [PHP] munge / obfuscate ?
>
> Hi Joey,
>
> Please keep responses on the list so others can also benefit from the
> learning process.
>
> Co
Not sure where to post this, but my company is looking to hire an
inhouse PHP programmer.
This could be part or full time depending on details.
We are not looking to contract an outside company ( doesn't work for us)
or
to get headhunters etc to call us. If you are a good PHP/MySQL/HTML
programmer
datetime.
Thanks
Jim Lucas wrote:
what type of format does your column take?
date
time
datetime
??
Jim Lucas
- Original Message -
From: "Jack Sasportas" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 2:11 PM
S
I am trying to find a function or information on how to properly take a
start time and an end time from mysql timestamps in order to calculate
time taken.
So in theory $endtime-$starttime = timespent.
It would be great if this understood that 11:55 pm til 12:10am one day
apart only equals 15 mi
I get the following error when using a previously working cookie function:
expects parameter 3 to be long
Code is below... I just don't see the difference then the way the doc uses:
time() - 3600
-vs- the way I did it below...
Thanks !
function f_put_cookie($user_name,$user_email,$account_type,
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;s the end of the string being
passed to it.
Any ideas on how I should get around this ?
This is what the db search string looks like:
$db_result = mysql_query("select * from $db_tablename where
category='$value'");
Thanks !
____
al commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.p
sp+ instead of learning php ..???
> I am so confused ~
> I have been learning php for a while and now it said jsp/asp+ is better
> than it.@@
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.inn
url,0);
setcookie("c_company_name",$company_name,(time()+400),'/',$l_url,0);
setcookie("c_uas_time",
"GREEN",(time()+400),'/',$l_url,0);
}
___
Jack Sasportas
Innovative Internet
Yes, I see what you mean...
In showing why the last section didn't work, I messed up the actual
overall
logic of the code.
I should have noticed that...nice catch
so for clarification where it says (MARK) should be
echo "Thanks for your submission.";
}
Thanks...
Jack
First you should manage your code nicer so that it is easier to read
and troubleshoot. Go through this to find my notes...
if (!$HTTP_POST_VARS) { exit();}
elseif ($HTTP_POST_VARS) {
if (!$Age) { echo "Please enter your age.\n";
} if
Why would
late sites.
> > >
> > > ~kurth
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL P
ail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovative
e overlooked.
>
> - seb
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
______
Tried the alternative stuff with no luck...
Looking for any crazy ideas that might work...
Thanks !
Paul Strange wrote:
> On Friday 20 July 2001 06:16, Jack Sasportas wrote:
> > I have some code that runs under php3 perfectly, but now under 4 I get a
> > parse error
> >
I have some code that runs under php3 perfectly, but now under 4 I get a
parse error
on this specific line, can't figure out how to resolve it.
the code looks like this
the error is in the middle line which is the end of a condition...
Thanks in advance...
--
PHP General Mailing List (h
> down to short_open_tag in
>
> http://www.php.net/manual/en/configuration.php#configuration.file
>
> for more info. You can also check your config via the phpinfo() function.
>
> - steve
>
> At 1:45 AM -0400 7/20/01, Jack Sasportas wrote:
> >I ha
vance...
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
!
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
site etc, that helps you check the html
code for the missing / wrong syntax so that it is spotted quickly like
making it red or something, instead of reading through hundreds of lines
of code, hopefully catching the problem?
Thanks
--
___
*12),'/','.website.com',0);
setcookie("c_uas_time",
"GREEN",(time()+400),'/','.website.com',0);
}
}
___
Jack Sasportas
Innovative Internet Solutions
Phone
: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact
IL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL P
onal commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP
unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.66
lt,$db_record,'time');
THANKS !
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
e info (there are loads of examples in
> the user notes).
>
> HTH
> Jon
>
> -Original Message-
> From: Jack Sasportas [mailto:[EMAIL PROTECTED]]
> Sent: 08 May 2001 17:28
> To: php
> Subject: [PHP] Date & Time Formatting ??
>
> OK I have read many examp
OK I have read many examples, old posts etc, but I am looking for a
detailed explanation as to how to do this.
First is when I write to a mysql database using the now() function, the
time stamp looks like so when I display the time back to the browser.
204:24:06 ( This should have been 12:24pm
t/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
!
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
needs the value being passed to it, in this case part_no
then I would take other input information and pass all if it along with
part_no to a cgi script.
Can someone give me a good sample ?
Thanks !
--
___
Jack Sasportas
Innovative Internet
t of the html.
The problem is that the mouseover doesn't work within the php page which
puts the whole thing together.
Any ideas on how to work around this ?
Thanks
--
_______
Jack Sasportas
Innovative Internet Solutions
Phone 305.665
gt;
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
___
Ja
< $length; $tempslime++) {
> $sid .= substr($SessPool, (rand()%(strlen($SessPool))), 1);
> }
> setcookie("LoginAuth", $sid,time()+3600);
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-
I'm guessing you are getting an extra blank
If you get a result back in $headlines = sizeof($content) of 5, then you have 5
lines, but in your script you have the value of $i as ZERO ($i = 0; $i <
$headlines; $i++)
meaning 0,1,2,3,4,5 which is 6 lines, simply set your $i=1 and it should be
co
the person
is saying, not just hey give me some code man..
Kurth Bemis wrote:
> At 09:08 PM 3/21/2001, Jack Sasportas wrote:
>
> ah - true laziness.this is what gave birth to wysiwyg editors like
> frontpage :-) do your self a favor and get off your ass and write code
>
ou to take on, you will learn a lot
> about writing PHP code. I don't really know what you are talking about,
> but you can look at phpMyAdmin or something.
>
> K E I T H V A N C E
> Software Engineer
> n-Link Corporation
>
> On Wed, 21 Mar 2001, Jack Sasportas wrote
!
___
Jack Sasportas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
The simple answer would be 2 while statements, but are you trying to mix the results
or are you keeping them seperate?
By mix there are 2 options
value_db1 Value_db2 Value_db1
or
value_db1
value_db1
value_db2
value_db1
by the simple answer above it would result in something like
Category #1
va
I have written a system with authentication to gain access to individual
data.
Since I am using the post method the command line has something like
abc.com?client_no=5
Now even though if that person emails you that url, you won't gain
access to it bascause of authentication that is needed, what
Is it possible to have a function that looks something like
function print_this( $value1, $value2, $maybe3) {
do whatever;
}
that would expect $value1, $value2 BUT would not care if $maybe3 came in
or not ? and not give an error message that there is a missing paramter
?
I know I can do a
hese objects?
>
> Thanks
>
> Miguel
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
__
ww.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
Is there a workaround under php3 for include_once ?
Thanks
___
Jack Sasportas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
x27;t find anything.
Any Ideas ?
_______
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
I appreciate your timeand look forward to stop banging my head
against the wall8^)
___
Jack Sasportas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
there, like
echo $cookie_name[1]
of could I just
echo $name resulting in value1_of_array ?
Finally if I didn't confuse you...does anyone have a GOOD example of the
proper way to put & get the cookies in an array format ?
THANKS!
___
he cities in FL & GA instead of just FL
and display the results together as if it was 1 restult. Then the resul
would be 100 records ( 50 FL & 50 GA ).
Thanks!
I did look on php.net and in a php book I have, but could not find
anything...
__
51 matches
Mail list logo