php-general Digest 28 Jul 2009 15:25:54 -0000 Issue 6254

2009-07-28 Thread php-general-digest-help
php-general Digest 28 Jul 2009 15:25:54 - Issue 6254 Topics (messages 295907 through 295939): Re: newbie: problem with $_Post[] 295907 by: Bastien Koert 295908 by: Richard S. Crawford 295909 by: Paul M Foster 295911 by: A.a.k Re: Single Quotes in Form Inputs

Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-28 Thread A.a.k
Hello Richard, that is exactly what I was looking for. thanks alot Paul, I didn't know its possible to use error_reporting(), that's a good hint thanks. btw if you guys know any simple php application that I can study and learn faster than going through books please let me know. I tried

Re: [PHP] Single Quotes in Form Inputs

2009-07-28 Thread Michael A. Peters
Ben Dunlap wrote: You can use http://us.php.net/mysql_real_escape_string to escape the input. [8] You should prep your data for insertion into the data by using a tool that formats it strictly for the database. In the ops case mysql_real_escape_string() is the correct tool for the job.

[PHP] Font problem

2009-07-28 Thread Dušan Novaković
Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and that font is not available on Linux distributions. So when u open page in FF on some

Re: [PHP] Font problem

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 12:07 +0200, Dušan Novaković wrote: Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and that font is not

[PHP] Re: Correct code ?? PHP Basic pw athentication with mysql

2009-07-28 Thread WebPat
Normally on a newsgroup you will have to give more information if you want people to respond. Most people don't simply want to read your code and figure out what you are finding wrong. You don't even say what the problem is. You are probably getting some kind of response to your code. Also,

[PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y, $pastDays); And make it into one var to compare to a db field that is formatted like 00/00/00 -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 09:32 -0400, Miller, Terion wrote: I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y, $pastDays); And make it into one var to compare to a db field that is

[PHP] Re: Making several variables into 1 variable

2009-07-28 Thread Jo�o C�ndido de Souza Neto
Why not this: $pastDate = date(d/m/y, strtotime(-30 days)); Miller, Terion tmil...@springfi.gannett.com escreveu na mensagem news:c6946809.4183%kmille...@springfi.gannett.com... I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m,

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Richard S. Crawford
On Tue, Jul 28, 2009 at 6:32 AM, Miller, Teriontmil...@springfi.gannett.com wrote: I need to take this:   $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y, $pastDays); And make it into one var to compare to a db

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well I tried and got no results from my query and I know there results with date ranges in the last 30 days, I basically need to count backward from now() 30

RE: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bob McConnell
From: Ashley Sheridan On Tue, 2009-07-28 at 09:32 -0400, Miller, Terion wrote: I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y, $pastDays); And make it into one var to compare to a

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well I tried and got no results from my query and I know there results with date ranges in

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:41 AM, Bob McConnell r...@cbord.com wrote: From: Ashley Sheridan On Tue, 2009-07-28 at 09:32 -0400, Miller, Terion wrote: I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y,

Re: [PHP] Font problem

2009-07-28 Thread Richard S. Crawford
2009/7/28 Dušan Novaković ndu...@gmail.com: Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and that font is not available on Linux

RE: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 09:41 -0400, Bob McConnell wrote: From: Ashley Sheridan On Tue, 2009-07-28 at 09:32 -0400, Miller, Terion wrote: I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays);

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well I tried and got no

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 9:46 AM, Miller, Teriontmil...@springfi.gannett.com wrote: On 7/28/09 8:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:52 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, Ashley Sheridan

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ian
On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well I tried and got no results from my query and I know there results with date

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Floyd Resler
On Jul 28, 2009, at 9:55 AM, Miller, Terion wrote: On 7/28/09 8:52 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 09:42 -0400,

[PHP] Multiple MySQL Queries

2009-07-28 Thread sono-io
This may be more of a MySQL question than PHP, but I'm hoping someone can point me in the right direction. I have working code (below) that pulls data from a particular category in our db. I'd like to be able to pull data from multiple categories in the same db and place them on the

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:11 AM, sono...@fannullone.us wrote:        This may be more of a MySQL question than PHP, but I'm hoping someone can point me in the right direction.  I have working code (below) that pulls data from a particular category in our db.  I'd like to be able to pull data

[PHP] Re: Making several variables into 1 variable

2009-07-28 Thread Carlos Medina
Miller, Terion schrieb: I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y, $pastDays); And make it into one var to compare to a db field that is formatted like 00/00/00 $result = date(d/m/y,

RE: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bob McConnell
From: Miller, Terion On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well I tried and got no results from my query and I know there results with date ranges in the last 30 days, I basically need to count

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
,snip You can also do this right within MySQL without needing to create a variable. This should work: $sql = SELECT DISTINCT restaurants.ID, name, address, inDate FROM restaurants, inspections WHERE restaurants.name != '' AND datediff(curdate(),inspections.inDate)=30 GROUP BY restaurants.ID

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnellr...@cbord.com wrote: From: Miller, Terion On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well I tried and got no results from my query and I know there

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 9:40 AM, Bastien Koert phps...@gmail.com wrote: On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnellr...@cbord.com wrote: From: Miller, Terion On 7/28/09 8:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: $pastDays = strtotime(-30 days); $date = date(d/m/y, $pastDays); Well

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:40 AM, Miller, Teriontmil...@springfi.gannett.com wrote: ,snip You can also do this right within MySQL without needing to create a variable.  This should work: $sql = SELECT DISTINCT restaurants.ID, name, address, inDate FROM restaurants, inspections WHERE

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:43 AM, Miller, Teriontmil...@springfi.gannett.com wrote: On 7/28/09 9:40 AM, Bastien Koert phps...@gmail.com wrote: On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnellr...@cbord.com wrote: From: Miller, Terion On 7/28/09 8:35 AM, Ashley Sheridan

Re: [PHP] Font problem

2009-07-28 Thread Jim Lucas
Dušan Novaković wrote: Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and that font is not available on Linux distributions. So when

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Shawn McKenzie
Bastien Koert wrote: On Tue, Jul 28, 2009 at 10:43 AM, Miller, Teriontmil...@springfi.gannett.com wrote: On 7/28/09 9:40 AM, Bastien Koert phps...@gmail.com wrote: On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnellr...@cbord.com wrote: From: Miller, Terion On 7/28/09 8:35 AM, Ashley Sheridan

[PHP] First of my Quark/php generated Questions

2009-07-28 Thread Miller, Terion
Okay I have to echo onto my reverse pub page this chunk of code that is for generating the page in Quark, it has to echo as is...but I'm getting errors--I've tried in brackets, in paraenthesis, double quotes, single quotes etc: echo v6.52e0 @Normal=Ps100t-2h100z9.4k0b0cMfHelvetica @.LIST

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Jim Lucas
Bastien Koert wrote: On Tue, Jul 28, 2009 at 10:11 AM, sono...@fannullone.us wrote: This may be more of a MySQL question than PHP, but I'm hoping someone can point me in the right direction. I have working code (below) that pulls data from a particular category in our db. I'd like to

RE: [PHP] First of my Quark/php generated Questions

2009-07-28 Thread Ford, Mike
-Original Message- From: Miller, Terion [mailto:tmil...@springfi.gannett.com] Sent: 28 July 2009 17:06 Okay I have to echo onto my reverse pub page this chunk of code that is for generating the page in Quark, it has to echo as is...but I'm getting errors--I've tried in brackets,

Re: [PHP] First of my Quark/php generated Questions (RESOLVED)

2009-07-28 Thread Miller, Terion
On 7/28/09 11:05 AM, Miller, Terion tmil...@springfi.gannett.com wrote: echo v6.52e0 @Normal=Ps100t-2h100z9.4k0b0cMfHelvetica @.LIST Bold=Ps100t-4h110.001z8.7k0b0cKfInterstateNL-BlackCondensed @.BODY=[S, .BODY]*J*hStandard*kn0*kt0*ra0*rb0*d0*p(0,7,0,10,0,0,G,U.S.

Re: [PHP] First of my Quark/php generated Questions (RESOLVED)

2009-07-28 Thread Jim Lucas
Miller, Terion wrote: On 7/28/09 11:05 AM, Miller, Terion tmil...@springfi.gannett.com wrote: echo v6.52e0 @Normal=Ps100t-2h100z9.4k0b0cMfHelvetica @.LIST Bold=Ps100t-4h110.001z8.7k0b0cKfInterstateNL-BlackCondensed @.BODY=[S,

Re: [PHP] First of my Quark/php generated Questions (RESOLVED)

2009-07-28 Thread Miller, Terion
Oh sorry, apparently that time it took the boss standing over me telling me to try the single quotes again(pretty sure I had tried them-I may have caching problems on my dumb computer) anyways so putting it in single quotes not double worked like a charm. On 7/28/09 11:52 AM, Jim Lucas

[PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php http://www.php.net/manual/en/function.date-create-from-format.php but I don't have PHP 5.3.0 installed in

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Jim Lucas
Thodoris wrote: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php http://www.php.net/manual/en/function.date-create-from-format.php but I don't have

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Richard S. Crawford
2009/7/28 Thodoris t...@kinetix.gr: Hi gang,   I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php http://www.php.net/manual/en/function.date-create-from-format.php

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Jim Lucas
Richard S. Crawford wrote: 2009/7/28 Thodoris t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
2009/7/28 Thodoris t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php http://www.php.net/manual/en/function.date-create-from-format.php

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Richard S. Crawford
On Tue, Jul 28, 2009 at 10:09 AM, Jim Lucasli...@cmsws.com wrote: Richard S. Crawford wrote: 2009/7/28 Thodoris t...@kinetix.gr: Hi gang,   I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description:

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 20:10 +0300, Thodoris wrote: 2009/7/28 Thodoris t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
On Tue, 2009-07-28 at 20:10 +0300, Thodoris wrote: 2009/7/28 Thodoris t...@kinetix.gr mailto:t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description:

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Jim Lucas
Thodoris wrote: 2009/7/28 Thodoris t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 20:38 +0300, Thodoris wrote: On Tue, 2009-07-28 at 20:10 +0300, Thodoris wrote: 2009/7/28 Thodoris t...@kinetix.gr mailto:t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
Thodoris wrote: 2009/7/28 Thodoris t...@kinetix.gr: Hi gang, I've been looking for a str_to_date (mysql) equivalent in PHP. I've noticed that these are matching the description: http://www.php.net/manual/en/datetime.createfromformat.php

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
Well it does make sense if you leave in UK :-) . But I was asking about how to change a day/month/year formated date (or a date in any format I like) to mysql format. The basic problem is that I need to define the format that the date is in. Sorry if I didn't make that clear before.

RE: [PHP] Font problem

2009-07-28 Thread HallMarc Websites
/index.php?p=524 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Information from ESET Smart Security, version of virus signature database 4285 (20090728) __ The message was checked by ESET Smart Security. http

[PHP] Creating/printing array issues

2009-07-28 Thread Allen McCabe
I found a php script to find all file types with a file-name formula and put them into an array. I then wanted to echo this array (possibly with links to the files). I want my default page to look for and list all php files with survey_*.php, the asterisk being any number, so the results should

[PHP] Re: Creating/printing array issues

2009-07-28 Thread Allen McCabe
By the way, I was getting a PHP error with an unexpected ) on line 47 ($aryPhotos), so I added the two \\ before {survey*_.php and now the page won't load, won't even display a PHP error. On Tue, Jul 28, 2009 at 11:06 AM, Allen McCabe allenmcc...@gmail.comwrote: I found a php script to find

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Jim Lucas
sono...@fannullone.us wrote: Hi Jim, Take a look inside your money_format() function look for the problem. I apologize for replying too quickly. The money_format() function looks just like the one I had before, so that's fine. Upon closer inspection, I found a few

Re: [PHP] Font problem

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 08:52 -0700, Jim Lucas wrote: Dušan Novaković wrote: Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and

Re: [PHP] Font problem

2009-07-28 Thread Michael A. Peters
Dušan Novaković wrote: Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and that font is not available on Linux distributions. So when u

[PHP] Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-28 Thread Matt Neimeyer
Background: I'm converting a webapp from Visual FoxPro as a backend to MySQL... However one part of our app (a system status checker) is common code between the versions. I've got the following function... In English (in case it's not apparent), if the version of the app is 2.0 or higher, then

RE: [PHP] Font problem

2009-07-28 Thread Bob McConnell
From: Ashley Sheridan On Tue, 2009-07-28 at 08:52 -0700, Jim Lucas wrote: Dušan Novaković wrote: Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that

Re: [PHP] Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-28 Thread Eddie Drapkin
On Tue, Jul 28, 2009 at 2:48 PM, Matt Neimeyerm...@neimeyer.org wrote: Background: I'm converting a webapp from Visual FoxPro as a backend to MySQL... However one part of our app (a system status checker) is common code between the versions. I've got the following function... In English (in

Re: [PHP] Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-28 Thread Matt Neimeyer
It's exactly what I would expect... The content of the row... But in any case, what does changing the content of the { } branch have to do with how the IF() itself is evaluated? array(4) { [0]= string(8) CustName [config]= string(8) CustName [1]= string(11) Sample Cust [value]=

[PHP] Nitro PDF Form Element

2009-07-28 Thread Dare Williams
Dear Forum Experts. I have an already created PDF Document that has a Form Element in it that was created with NITROPDF. But the problem is just that I need a way to pass value or populate the Document Form Element with value store in a Session Variable before the form is displayed to user.

Re: [PHP] Nitro PDF Form Element

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 12:16 -0700, Dare Williams wrote: Dear Forum Experts. I have an already created PDF Document that has a Form Element in it that was created with NITROPDF. But the problem is just that I need a way to pass value or populate the Document Form Element with value store in

Re: [PHP] Nitro PDF Form Element

2009-07-28 Thread Dare Williams
Dear Forum, I have an already created PDF Document that has a Form Element in it that was created with NITROPDF. But the problem is just that I need a way to pass value or populate the Document Form Element with value store in a Session Variable before the form is displayed to user. There is

Re: [PHP] Nitro PDF Form Element

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 3:31 PM, Dare Williamsdarrenwi...@yahoo.com wrote: Dear Forum, I have an already created PDF Document that has a Form Element in it that was created with NITROPDF. But the problem is just that I need a way to pass value or populate the Document Form Element with

[PHP] Argh Date problems

2009-07-28 Thread Miller, Terion
Well I was going along smoothly from this morningbut it came down to having to change the field type to date in the mySQL..so now I have this which returns a scraped value formatted like this 0/00/00 m/d/y $inDate = $results[3][$i]; Which date function can I use to format for the db so that

[PHP] Re: Argh Date problems

2009-07-28 Thread Jo�o C�ndido de Souza Neto
In mySql you have date_format which I think´ll solve your problem. Miller, Terion tmil...@springfi.gannett.com escreveu na mensagem news:c694bead.41f4%kmille...@springfi.gannett.com... Well I was going along smoothly from this morningbut it came down to having to change the field type to

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Jim Lucas
Please, click Reply All so the list may benefit from our talking. Read below for further information. sono...@fannullone.us wrote: Jim, if ( ( $results = mysql_query($SQL, $db) ) !== false ) { You want to have the inner portion processed then the comparison done. Not the other way

Re: [PHP] Argh Date problems

2009-07-28 Thread Miller, Terion
Ok so I got the $inDate = strtotime($results[3][$i]); Giving me the unix date now I am trying all the different date functions that will put it in the -00-00 like sql stores it because I ran it with the unix stamp and it just stored 00 in the db Hoping something like this works?

Re: [PHP] Argh Date problems (RESOLVED)

2009-07-28 Thread Miller, Terion
OMG AND I FIGURED IT OUT MYSELF...dang I just may be learning some php.. On 7/28/09 3:02 PM, Miller, Terion tmil...@springfi.gannett.com wrote: Ok so I got the $inDate = strtotime($results[3][$i]); Giving me the unix date now I am trying all the different date functions that will put it in

[PHP] Re: Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-28 Thread Shawn McKenzie
Matt Neimeyer wrote: Background: I'm converting a webapp from Visual FoxPro as a backend to MySQL... However one part of our app (a system status checker) is common code between the versions. I've got the following function... In English (in case it's not apparent), if the version of the

Re: [PHP] Argh Date problems

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 4:02 PM, Miller, Teriontmil...@springfi.gannett.com wrote: Ok so I got the $inDate = strtotime($results[3][$i]); Giving me the unix date now I am trying all the different date functions that will put it in the -00-00 like sql stores it because I ran it with the

Re: [PHP] Argh Date problems

2009-07-28 Thread Miller, Terion
On 7/28/09 3:48 PM, Bastien Koert phps...@gmail.com wrote: On Tue, Jul 28, 2009 at 4:02 PM, Miller, Teriontmil...@springfi.gannett.com wrote: Ok so I got the $inDate = strtotime($results[3][$i]); Giving me the unix date now I am trying all the different date functions that will put it in

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread sono-io
On Jul 28, 2009, at 12:48 PM, Jim Lucas wrote: ?php $item_list = ; $cats = array('01100-01200-01300-06403', '01100-02201-01300-06403'); echo 'table border=1'; echo 'tr'; foreach ( $cats AS $cat ) { echo 'th'.htmlspecialchars($cat).'/th'; } echo '/trtr'; foreach ( $cats AS $cat ) {

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread sono-io
On Jul 28, 2009, at 12:48 PM, Jim Lucas wrote: ?php $item_list = ; $cats = array('01100-01200-01300-06403', '01100-02201-01300-06403'); echo 'table border=1'; echo 'tr'; foreach ( $cats AS $cat ) { echo 'th'.htmlspecialchars($cat).'/th'; } echo '/trtr'; foreach ( $cats AS $cat ) {

[PHP] GeoIP Character Encoding

2009-07-28 Thread APseudoUtopia
Hey, I'm using the PECL GeoIP module on php 5.2.10. When I look up an IP address, the geoip_record_by_name() function is giving me a string that contains special characters, such as the following: 'Portugal, 09, Vila Real De Santo António' 'Norway, 08, Ålesund' 'Portugal, 04, Vila Nova De

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Jim Lucas
sono...@fannullone.us wrote: On Jul 28, 2009, at 12:48 PM, Jim Lucas wrote: ?php $item_list = ; $cats = array('01100-01200-01300-06403', '01100-02201-01300-06403'); echo 'table border=1'; echo 'tr'; foreach ( $cats AS $cat ) { echo 'th'.htmlspecialchars($cat).'/th'; } echo

RE: [PHP] Font problem {CORRECTION}

2009-07-28 Thread HallMarc Websites
(20090728) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Message Board Recommendations

2009-07-28 Thread tedd
Hi gang: I have a client who is looking for a Message Board for Subscribers to be installed on his site -- one with a good admin. Any recommendations? Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

[PHP] Access Denied

2009-07-28 Thread Ernie Kemp
Line in Program: //connect to server and select database //connect to server and select database $mysqli = mysqli_connect(localhost, jdoe, doepass, testdb); //create and issue the query $sql = SELECT f_name, l_name FROM auth_users WHERE username = '.$_POST[username].' AND password =

[PHP] Recall: Access Denied

2009-07-28 Thread Ernie Kemp
Ernie Kemp would like to recall the message, Access Denied. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Access Denied

2009-07-28 Thread Jim Lucas
Ernie Kemp wrote: Line in Program: //connect to server and select database //connect to server and select database $mysqli = mysqli_connect(localhost, jdoe, doepass, testdb); //create and issue the query $sql = SELECT f_name, l_name FROM auth_users WHERE username =

RE: [PHP] Access Denied

2009-07-28 Thread Ernie Kemp
Please ignore. Newbie error solved Thanks From: Ernie Kemp [mailto:ernie.k...@sympatico.ca] Sent: July-28-09 9:34 PM To: php-general@lists.php.net Subject: [PHP] Access Denied Line in Program: //connect to server and select database //connect to server and select database

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread sono-io
On Jul 28, 2009, at 4:38 PM, Jim Lucas wrote: I saw your other email before sending. The problem with the way you show you want it there is that each result set would have to be the same size. I'm going to assume that they won't be... Well, they SHOULD be but you never know. Thanks