RE: [PHP] help with query

2012-06-07 Thread Jack Sasportas
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,

RE: [PHP] Problem with date

2011-12-07 Thread Jack Sasportas
> > > 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

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Jack Sasportas
> -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

[PHP] OT PHP Programmers

2004-03-18 Thread Jack Sasportas
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

Re: [PHP] Need a function to calculate time difference.

2003-07-03 Thread Jack Sasportas
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

[PHP] Need a function to calculate time difference.

2003-07-02 Thread Jack Sasportas
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

[PHP] Cookie error after 4.2.3 upgrade

2002-11-08 Thread Jack Sasportas
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,

[PHP] Help w/ 4.2.3 Problem

2002-11-08 Thread Jack Sasportas
-- ___ 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

[PHP] Help w/passing a search parameter that includes space and ,

2002-03-15 Thread Jack Sasportas
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 ! ____

Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?

2001-09-03 Thread Jack Sasportas
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

Re: [PHP] php's future

2001-09-02 Thread Jack Sasportas
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

[PHP] HELP! Frustrating Cookie Problem....

2001-08-31 Thread Jack Sasportas
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

Re: [PHP] Re:[PHP] IF ELSEIF ELSE??

2001-08-03 Thread Jack Sasportas
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

[PHP] Re:[PHP] IF ELSEIF ELSE??

2001-08-03 Thread Jack Sasportas
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

Re: [PHP] templates

2001-07-23 Thread Jack Sasportas
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

Re: [PHP] templates

2001-07-23 Thread Jack Sasportas
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

Re: [PHP] PHP & SSI in armony?

2001-07-21 Thread Jack Sasportas
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] -- ______

Re: [PHP] Help! Parse error.....

2001-07-20 Thread Jack Sasportas
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 > >

[PHP] Help! Parse error.....

2001-07-20 Thread Jack Sasportas
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

Re: [PHP] Help..Parse error

2001-07-19 Thread Jack Sasportas
> 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

[PHP] Help..Parse error

2001-07-19 Thread Jack Sasportas
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

[PHP] Help! -- mail() is not supported in this php build

2001-07-19 Thread Jack Sasportas
! -- ___ 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

[PHP] Troubleshooting syntax ?

2001-07-03 Thread Jack Sasportas
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 -- ___

[PHP] Cookie ?

2001-06-30 Thread Jack Sasportas
*12),'/','.website.com',0); setcookie("c_uas_time", "GREEN",(time()+400),'/','.website.com',0); } } ___ Jack Sasportas Innovative Internet Solutions Phone

Re: [PHP] (slightly OT) the bad and the good (hosting recommentations)

2001-06-30 Thread Jack Sasportas
: [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

Re: [PHP] reading records alphebetically

2001-06-30 Thread Jack Sasportas
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

Re: [PHP] security

2001-05-21 Thread Jack Sasportas
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

Re: [PHP] MYSQL Password

2001-05-17 Thread Jack Sasportas
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

[PHP] Help..Date Format

2001-05-17 Thread Jack Sasportas
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

Re: [PHP] Date & Time Formatting ??

2001-05-08 Thread Jack Sasportas
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

[PHP] Date & Time Formatting ??

2001-05-08 Thread Jack Sasportas
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

Re: [PHP] PHP & Java ?

2001-05-04 Thread Jack Sasportas
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

[PHP] PHP & Java ?

2001-05-04 Thread Jack Sasportas
! ___ 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

[PHP] Passing Parameter

2001-04-11 Thread Jack Sasportas
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

[PHP] Javascript issue

2001-04-11 Thread Jack Sasportas
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

Re: [PHP] setcookie().. how to retrieve data afterward?

2001-04-01 Thread Jack Sasportas
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

Re: [PHP] need help with cookies

2001-03-22 Thread Jack Sasportas
< $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-

Re: [PHP] Only 5 lines (now with the right script :/ )

2001-03-22 Thread Jack Sasportas
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

Re: [PHP] Pre-Written Script ?

2001-03-21 Thread Jack Sasportas
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 >

Re: [PHP] Pre-Written Script ?

2001-03-21 Thread Jack Sasportas
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

[PHP] Pre-Written Script ?

2001-03-21 Thread Jack Sasportas
! ___ 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]

Re: [PHP] can you have two sql statements on the same page.

2001-03-21 Thread Jack Sasportas
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

[PHP] Post -vs- Get

2001-03-21 Thread Jack Sasportas
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

[PHP] Optional Parameter ?

2001-03-21 Thread Jack Sasportas
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

Re: [PHP] managing image files with PHP/Mysql

2001-03-16 Thread Jack Sasportas
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] -- __

Re: [PHP] RE: [PHP-DB] Login System with access levels

2001-03-16 Thread Jack Sasportas
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]

[PHP] include php3 -vs- 4

2001-03-16 Thread Jack Sasportas
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

[PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread Jack Sasportas
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

[PHP] Help w/Cookie Problem

2001-03-15 Thread Jack Sasportas
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]

[PHP] Help! Cookies...

2001-03-14 Thread Jack Sasportas
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! ___

[PHP] multiple query in 1 select ?

2001-02-28 Thread Jack Sasportas
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... __