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. Wha

[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 Linu

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 a

[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, lo

[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

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

[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"" 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", $pastDays); $p

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, 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 tha

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:35 AM, "Ashley Sheridan" 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 days I thought strt

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 m

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" 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 d

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:41 AM, "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); >> >> $past_ye

Re: [PHP] Font problem

2009-07-28 Thread Richard S. Crawford
2009/7/28 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.

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 = d

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:44 AM, "Ashley Sheridan" wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: > > > On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: > > $pastDays = strtotime("-30 days"); > $date = date("d/m/y", $pastDays); > > Well I tried and got no results from my query and I know ther

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" wrote: > > On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: > > > > > > On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: > > > > $pastDays = strtotime("-30 days"); > > $date = date("d/m/y"

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 9:46 AM, Miller, Terion wrote: > > > > On 7/28/09 8:44 AM, "Ashley Sheridan" wrote: > > On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: >> >> >> On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: >> >> $pastDays = strtotime("-30 days"); >> $date = date("d/m/y", $pastDay

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 8:52 AM, "Ashley Sheridan" wrote: On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, "Ashley Sheridan" wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: > > > On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: > > $pastDays = strtotime("-30 da

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" 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 ran

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" wrote: On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, "Ashley Sheridan" wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, "

[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 same

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:11 AM, 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 > from multiple cate

[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("

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" 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

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

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnell wrote: > From: Miller, Terion > On 7/28/09 8:35 AM, "Ashley Sheridan" 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

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Miller, Terion
On 7/28/09 9:40 AM, "Bastien Koert" wrote: On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnell wrote: > From: Miller, Terion > On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: > >> $pastDays = strtotime("-30 days"); >> $date = date("d/m/y", $pastDays); >> >> Well I tried and got no results from my qu

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:40 AM, Miller, Terion 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 restaurants.name !=

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 10:43 AM, Miller, Terion wrote: > > > > On 7/28/09 9:40 AM, "Bastien Koert" wrote: > > On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnell wrote: >> From: Miller, Terion >> On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: >> >>> $pastDays = strtotime("-30 days"); >>> $date = date(

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

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, > Terion wrote: >> >> >> On 7/28/09 9:40 AM, "Bastien Koert" wrote: >> >> On Tue, Jul 28, 2009 at 10:34 AM, Bob McConnell wrote: >>> From: Miller, Terion >>> On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: >>> $pastDays = strtotim

[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 " @Normal= @.LIST Bold= @.BODY=[S"", ".BODY"]<*J*h"Standard"*

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread Jim Lucas
Bastien Koert wrote: > On Tue, Jul 28, 2009 at 10:11 AM, 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

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 brac

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" wrote: echo " @Normal= @.LIST Bold= @.BODY=[S"", ".BODY"]<*J*h"Standard"*kn0*kt0*ra0*rb0*d0*p(0,7,0,10,0,0,G,"U.S. English")Ps100t-2h100z9.4k0b0cKf"PoynterOSTextTwoNL-Roman"> @Normal=[S".BODY ",".BODY","Normal"]<> @.GLANCE Hed 100K=[S"",""]<*L*h"Headl

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" wrote: > > > echo " > @Normal= > @.LIST > Bold= > @.BODY=[S"", > ".BODY"]<*J*h"Standard"*kn0*kt0*ra0*rb0*d0*p(0,7,0,10,0,0,G,"U.S. > English")Ps100t-2h100z9.4k0b0cKf"PoynterOSTextTwoNL-Roman"> > @Normal=[S".BODY > ",".BODY",

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

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Richard S. Crawford
2009/7/28 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

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Jim Lucas
Richard S. Crawford wrote: > 2009/7/28 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-c

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
2009/7/28 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

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 Lucas wrote: > Richard S. Crawford wrote: >> 2009/7/28 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.createfro

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 : > > > >> 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 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: >> >> http://www.php.net/manual/en/datetime.createfrom

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Jim Lucas
Thodoris wrote: > >> 2009/7/28 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.da

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 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 match

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Thodoris
Thodoris wrote: 2009/7/28 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-fo

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
> > http://www.alistapart.com/articles/cssatten > http://www.webdeveloper.com/forum/archive/index.php/t-37552.html > http://home.tiscali.nl/developerscorner/fdc-varia/font-embedding.htm > http://www.cameraontheroad.com/index.php?p=524 > > > > -- > PHP General M

[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 wrote: > I found a php script to find all file types with

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 f

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 f

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 ope

[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 use

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

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 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

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" ["v

[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. Ca

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 stor

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 a

Re: [PHP] Nitro PDF Form Element

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 3:31 PM, Dare Williams 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 value store in a Sess

[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"" 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 date in the mySQL..so now

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

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? $forma

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" 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 store

[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 t

Re: [PHP] Argh Date problems

2009-07-28 Thread Bastien Koert
On Tue, Jul 28, 2009 at 4:02 PM, Miller, Terion 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 > unix stamp and it just

Re: [PHP] Argh Date problems

2009-07-28 Thread Miller, Terion
On 7/28/09 3:48 PM, "Bastien Koert" wrote: On Tue, Jul 28, 2009 at 4:02 PM, Miller, Terion 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 beca

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread sono-io
On Jul 28, 2009, at 12:48 PM, Jim Lucas wrote: '; echo ''; foreach ( $cats AS $cat ) { echo ''.htmlspecialchars($cat).''; } echo ''; foreach ( $cats AS $cat ) { echo ''; $cat = mysql_real_escape_string($cat, $db); $SQL = "SELECT itemid,description,unitprice

Re: [PHP] Multiple MySQL Queries

2009-07-28 Thread sono-io
On Jul 28, 2009, at 12:48 PM, Jim Lucas wrote: '; echo ''; foreach ( $cats AS $cat ) { echo ''.htmlspecialchars($cat).''; } echo ''; foreach ( $cats AS $cat ) { echo ''; $cat = mysql_real_escape_string($cat, $db); $SQL = "SELECT itemid,description,unitprice

[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 Famal

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: > >> > $item_list = ""; >> $cats = array('01100-01200-01300-06403', '01100-02201-01300-06403'); >> >> echo ''; >> echo ''; >> foreach ( $cats AS $cat ) { >> echo ''.htmlspecialchars($cat).''; >> } >> echo ''; >> f

RE: [PHP] Font problem {CORRECTION}

2009-07-28 Thread HallMarc Websites
. Sorry bout that [HallMarc Websites] __ Information from ESET Smart Security, version of virus signature database 4286 (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 (http://www.php.

[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 pa

[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 = '".$_POST[

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 $mysq

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 for

[PHP] How to Install Roadsend Compiler on Fedora

2009-07-28 Thread Javed Khan
Can something please show me to install Roadsend Compiler on Fedora 10. Thank you, J.K