Re: [PHP] Plotting a Line Graph

2009-10-16 Thread James Ausmus
jpgraph: http://www.aditus.nu/jpgraph/ On Fri, Oct 16, 2009 at 10:32 AM, wrote: > (sorry about the long Subject line typo - resending) > > I have a data file that stores about 500 numbers in a record - meant to plot > a basic line graph (left to right). The numbers can be imported into a > reco

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread James Ausmus
On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: > It would be much simpler and cleaner to use Javascript to modify the form's > action attribute onClick. > Not really. What about clients who don't have Javascript installed? What about users who want to either do something nefarious or just

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread James Ausmus
On Fri, Mar 20, 2009 at 11:39 AM, Ginkga Studio, LLC wrote: > LOL. > > :0) > > Ok. You guys are fun but I have to get to work. Hope all works out for you > guys. Sorry for posting to your list. Just block me so I don't bother you > again. > > Good luck with all your programming. You all seem like

Re: [PHP] newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"?

2008-08-26 Thread James Ausmus
On Tue, Aug 26, 2008 at 10:08 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 26 August 2008 17:15, James Ausmus advised: > >> On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike >> <[EMAIL PROTECTED]> wrote: >>> On 25 August 2008 00:54, Govinda advised: >> &g

Re: [PHP] newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"?

2008-08-26 Thread James Ausmus
On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 25 August 2008 00:54, Govinda advised: > Personally, I might be tempted to do something like this: > > if (($pos = strrchr($file, '.'))!==FALSE): > switch (strtolower(substr($file, $pos))): > case '.gif':

Re: [PHP] Re: Sale 79% OFF !!!

2008-08-21 Thread James Ausmus
On Thu, Aug 21, 2008 at 9:32 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Bastien Koert wrote: >> >> I never cease to be amazed at the continuing stupidity of the human race. > > There is a movie called "Idiocracy" that sums up the stupidity of the human > race quite well it's a very funny mo

Re: [Fwd: Re: [PHP] Please stop me from tearing my hair out.]

2008-06-19 Thread James Ausmus
On Thu, Jun 19, 2008 at 7:54 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Ummm, yes it is :) Static variables have persistence beyond the function > call and thus beyond the function scope itself. Umm, no it's not. Static variables have persistence, but are scoped just like normal variables

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread James Ausmus
On Jan 23, 2008 10:03 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 23/01/2008, James Ausmus <[EMAIL PROTECTED]> wrote: > > Try using the mysql_ping() command to check to see if your connection > > is available: > > > > http://us2.php.net/manual/en/functio

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread James Ausmus
Try using the mysql_ping() command to check to see if your connection is available: http://us2.php.net/manual/en/function.mysql-ping.php something like: HTH- James On Jan 22, 2008 6:04 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 23/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: > > >

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread James Ausmus
On Jan 21, 2008 11:57 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Today, I found a bug in my software which I was originally happy to > find since that means there's one less that I have to worry about... 3 > hours later while trying to figure out how to fix it I wish I never > found it! > > Here'

Re: [PHP] variable substitution

2008-01-01 Thread James Ausmus
d be: function assignStrA($subStr) { $retVal = "stuff $subStr and more stuff"; return $retVal; } if (cond1) { $string_a = assignStrA('foo'); } else if (cond2) { $string_a = assignStrA('bar'); } else { $string_a = assignStrA('other'); } HTH- J

Re: [PHP] combining 2 arrays

2007-10-16 Thread James Ausmus
age- > > From: Ladislav Andel [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, October 16, 2007 1:05 PM > > To: James Ausmus; PHP List > > Subject: Re: [PHP] combining 2 arrays > > > > Thank you very much! > > It's exactly the code I was looking f

Re: [PHP] combining 2 arrays

2007-10-16 Thread James Ausmus
On 10/16/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: > Hi list! > I read data from 2 databases and for the purpose of displaying the > information at my web interface as one piece > I need to combine the data into one array first.. Here is my problem: > > Firstly, it reads from first DB and get t

Re: [PHP] How do I get PHP to save a backslash in a Mysql table?

2007-10-10 Thread James Ausmus
On 10/10/07, Don Proshetsky <[EMAIL PROTECTED]> wrote: > Hi, > > I have a field in which a user inputs a Windows style directory path, hence > using backslashes and not forward slashes. > > Example: c:\qb\data\mydatadile.qbw > > However, when the use clicks update, what gets saved is: > c:qbdatamyd

Re: [PHP] RE: the opposite of a join?

2007-10-03 Thread James Ausmus
On 10/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi J, > > > > > > Checkout this, > > > > > > SELECT * FROM tbl_company where id not in (SELECT companyID from > > tbl_contacts) > > > > > Brilliant! This is exactly what I was looking for, and is quite > logical/readable! Thanks to every

Re: [PHP] the opposite of a join?

2007-10-03 Thread James Ausmus
On 10/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have a company table and a contacts table. In the contacts table, there > is a field called "companyID" which is a link to a row in the company > table. > > > > What is the easiest way to query the company table for all the company > r

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-18 Thread James Ausmus
On 9/17/07, Rodolfo De Nadai <[EMAIL PROTECTED]> wrote: > Hi all... > > I'm facing a serious problem with my application. I have a script write > in PHP that starts in Internet Explorer, this script keep on running > until a varible value change on my MySQL database. > The problem is that when i re

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-29 Thread James Ausmus
On 8/29/07, Stephen <[EMAIL PROTECTED]> wrote: > --- Jason Pruim <[EMAIL PROTECTED]> wrote: > > > So to say it another way, I have a table that has > > 900 records in it, > > I've added 3 records, but then deleted 2 of those > > which puts the > > actual record count at 901 but my auto increment >

[PHP] Override parent class constants

2007-08-22 Thread James Ausmus
Hello - I'm trying to find a (sane) way to, in an extended class, override the parent class's constants, something like the following (which doesn't actually work): class baseClass { const myBaseVar = "base value!"; protected $myVar; function __construct() { $this->myVar = self::myBa