What do you want it to look like in the text boxes? If you just want to
take out the two parentheses, you can use strstr to get the index of the ")"
string to use in your substring statement.
http://www.php.net/manual/en/function.strstr.php
I hope this helps!
-Natalie
-Original Message---
Some editors let you find/replace in files in a certain folder. That might
be easier. I know UltraEdit let you do this and it only takes a few
minutes. To me, that is much less labor-intensive than trying to write code
to do it, unless you're trying to learn things while you do it. :-)
-Natali
AreaObject.options[1].value = "51";
///
AreaObject.selectedIndex = 0;
}
-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 4:02 PM
To: Leotta, Natalie (NCI/IMS); [EMAIL PROTECTED]
Subject: RE: [PHP] Menu Selecti
Unless you want to submit or use frames, you need to use JavaScript to
populate the second dropdown based upon the value of the first one. PHP
doesn't let you do this without the submit or frames because it's
server-side, whereas JS is client-side.
If you need any code let me know.
Good luck!
I have a line class that I'm using to draw a line graph of up to 5 lines.
Since I query the db for each of those lines (with a # as lineNum), my code
to take everything out of the fetch_arrays is fairly cumbersome. I use this
code in 4 different programs (the graph, the printable graph, the data
is
select MAX()
what you are looking for? I know it works on numeric columns, I'm not sure
if it works on non-numbers, you'd have to look it up in a SQL Tutorial
somewhere.
Good luck!
-Natalie
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12
have you tried Nics.MAC in ("xxx","xxx","xxx","xxx")? There's a lot less
room for error in that, because it's so much tidier.
-Natalie
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MSSQL/PHP Quer
king so I'm not
going to ask question :-)
Thanks!
-Natalie
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:54 PM
To: Leotta, Natalie (NCI/IMS); [EMAIL PROTECTED]
Subject: RE: [PHP] Fw: include() statement goofing me up - help
[snip]
t have anything including successfully, this is all the help I
can be :-)
Good luck!
-Natalie
-Original Message-
From: Doug DeVries [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:36 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Fw: include() state
That may be the case, but I had assumed the show() was a function in the
file that should be included.
When I include files and it doesn't work (I've only started trying today and
discovered the beauties of the include_path) it says:
Fatal error: Failed opening required 'includeFile.inc'
(include
Instead of window.location, try document.formName.target = "file.php?params"
- that's how I have mine set up and it works well.
You need to follow that with document.formName.submit()
-Natalie
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 4:41
I wish I'd seen this before I sent my message!
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Retrieving text from a URL using PHP
On Thursday 06 June 2002 23:43, Anthony Ritter wrote:
> Is
In theory, I would guess you could use combinations of explode and strstr to
maybe explode on <, then run strstr on > so you get everything after the >
but before the next <. Then you'd probably have to implode it or something.
There might be a better way to do it with just substr and strstr so y
You can use JavaScript:
document.location="URL";
You can do that in an onClick (make sure that it's not a type submit, just a
type button if you're using a button).
-Natalie
-Original Message-
From: Renaldo De Silva [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 2:45 PM
To:
with ImageColorAllocate.
I have a meeting until about 1:00, but if you're still having problems let
me know and I can email you some example code this afternoon.
-Natalie
-Original Message-
From: Kris Johnson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 01, 2002 11:11 PM
To: Leotta, Natali
-
From: Jim lucas [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:29 PM
To: Leotta, Natalie (NCI/IMS); [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: Dave Shacket
Subject: Re: [PHP] Run php function with user click
but that would take you off the current page wouldn't it? or would yo
JavaScript could do a similar thing with onClick.
-Natalie
-Original Message-
From: Jim lucas [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:21 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Dave Shacket
Subject: Re: [PHP] Run php function with user click
use flash to open a
have "open" and point it to your browser of choice. Not something
you want to put on your website for John Q. Public, but ok for advanced
users.
thanks for the help!
-Natalie
-Original Message-----
From: Leotta, Natalie (NCI/IMS)
Sent: Friday, May 31, 2002 1:52 PM
To: 'Jai
al Message-
From: Jaime Bozza [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 1:49 PM
To: Leotta, Natalie (NCI/IMS)
Cc: Jeans, Matt (NCI/IMS); Cucinelli, James (NCI/IMS);
[EMAIL PROTECTED]
Subject: RE: [PHP] PHP URLs not opening from email in Outlook XP
Natalie,
I'm using Outlook X
I just tried to open the PHP link about the Navy. I'm running IE6 (freshly
installed today, so no tweaks have been made) with Win2000. When I clicked
on the link in the email, a "locate link" window came up (similar to an open
file window). This does not happen on my coworker's machine. The on
Hi, Jason.
I'm developing some really cool line/point and bar graphs. While the Image
stuff is definitely quite different, I think you'd really like it once you
get into it. Our graphs are generated dynamically from data in a database.
I can't show you the graphs because they aren't ready for t
My company contracts for the National Institutes of Health and the National
Cancer Institute. A group of us are developing a website for State Cancer
Profiles - ie, you want to see the trend of lung cancer in the Total US v.
Kentucky kinds of things. All of the graphs that I'm working on are bei
You could try using isset first. I'm not sure where your log is, but if you
check to see if task is set, then maybe that will eliminate the problem :-)
-Natalie
http://www.php.net/manual/en/function.isset.php
-Original Message-
From: Crane, Christopher [mailto:[EMAIL PROTECTED]]
Sent:
-Natalie
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 4:29 PM
To: Leotta, Natalie (NCI/IMS); Igor Portnoy; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] Problem running script after installing PHP 4.2.1
Okay, the only issue with
I have a quick question. I've been reading all of this about the upgrade -
we're just waiting for our network guy to do it.
We need to use the query string for parameters so our URL is
"cut-and-paste-able." Is that going to be a problem? We were using
$HTTP_POST_VARS until someone decided that
Like we have much of a choice - I'm sure my bosses would love it if I went
to them and asked for a "real" email client.
-Original Message-
From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:06 AM
To: Rasmus Lerdorf
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP]
I disagree. I use // because then when I need to take out a chunk of code
(the requirements for the programs change faster than I can keep up with
them!!) I can do /* unnecessary code */ and it doesn't end prematurely.
-Natalie
-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED
That makes sense. Thanks!
-Natalie
-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:46 PM
To: Leotta, Natalie (NCI/IMS); 'Jonathan Rosenberg'; Johnson Kirk;
[EMAIL PROTECTED]
Subject: RE: [PHP] comment followed by ?> fails to p
But why wouldn't the parser skip right over a // line? it shouldn't even
see anything in it.
-Original Message-
From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:46 PM
To: Johnson, Kirk; [EMAIL PROTECTED]
Subject: RE: [PHP] comment followed by ?> fails to
You could, in theory, submit your query to an intermediate file, which only
displays the "Searching" screen, but is querying your database and throwing
everything you need into hidden fields in a form. Then have that form have
an onLoad submit to your results page.
I did this with HTML submittin
To change your Image color use ImageFill:
ImageFill($im,$gifwidth,$gifheight,ImageColorAllocate($im,235,235,235));
Then, in your ImageTTFText, you can set the font:
ImageTTFText($im, 11, 0, 20, (540-20),-$black,"../fonts/arial.ttf", "Source:
SEER 12 Program");
I recommend using -$fontc
Thanks! I didn't know it was that helpful :-) It's in there now.
-Natalie
-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 3:58 PM
To: Leotta, Natalie (NCI/IMS)
Subject: RE: [PHP] image_create(), header.
This looks like a gre
You can save them and then call them up, but then you have to use a cron or
something to empty out the folder. Here's how I save it:
//Image created and everything up here, this is the very end of it
$myTime = time();
ImagePNG($im, "../spool/jp$myTime.png"); //this creates a unique name
chmod(".
ay 23, 2002 3:00 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] creating Image to display without saving it.
On Thu, 23 May 2002, Leotta, Natalie (NCI/IMS) wrote:
> I've got a page where I create an Image that I want to put into one of
> my HTML table cells.
I've got a page where I create an Image that I want to put into one of my
HTML table cells. I've been doing this by saving the file, chmoding it, and
then opening it using image source in the HTML.
The problem is that when you do that, the new version of IE has that stupid
pop-up window when
This sounds like it might work. Thanks for your help!! I knew there had to
be a better way than what my coworkers came up with :-)
-Natalie
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 4:09 PM
To: Leotta, Natalie (NCI/IMS)
Cc
Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 3:56 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] refreshing PHP on onClick
"Leotta, Natalie (NCI/IMS)" wrote:
>
> This might be a little bit JS and a little b
This might be a little bit JS and a little bit PHP. I'm wondering if
there's an easy way to refresh a PHP page on an "onClick" and change one
parameter (say someone wants to redraw the graph, but with the points). I
don't want to pay attention to any of the other parameters that could have
chang
Thank you so much! I'd looked all over, but apparently not in the right
places.
Thanks again!!
-Natalie
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:32 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re:
Hello. I'm drawing line graphs and for each line they want a different
style (dots, dashes, etc.). I can't find a way to make the line draw
thicker than normal, and the regular thickness isn't thick enough. I've
tried drawing 3 lines next to each other, which works fine with solid lines,
but it
This is what I do in one of my programs. I set hidden values in my HTML and
then JS can access them, change them, and then when the form is submitted
(JS can do that too if you want it to be automatic) the PHP reads in the
hidden values.
-Natalie
-Original Message-
From: 1LT John W. Hol
Hi, Steve.
$this refers to a specific instance of a class. The -> accesses a property
or method associated with this class.
So, in your class, say it's class car, and in your constructor you want to
initialize the color to red, you'd do
$this->color = $red;
Outside of the class, with your $
Is there any reason that you have to use JS to redo the array? I did
something like this once and had the buttons monitored by JS, then when you
click it set a hidden var (with a name like sort) and submitted the page.
Then my PHP read in everything and redrew the graph based on what we were
sort
d the picture as a .bmp it would help?
-Original Message-----
From: Leotta, Natalie (NCI/IMS)
Sent: Thursday, April 25, 2002 10:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] using transparent images in a style
Hi. I'm trying to make lines based on dots and dashes and I need the color
Hi. I'm trying to make lines based on dots and dashes and I need the colors
in the middle to be transparent. This is all done within a class, that's
why there are "$this->"s all over.
$t = ImageColorAllocate($this->im,1,1,1);
$this->trans = ImageColorTransparent($this->im,$t);
$this-
-Natalie
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:45 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] arrays in a class
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:37:37 -0400 :
> Wow.
Wow. Now I'm feeling dumb... It does work with my non-array vars though -
I guess laziness caught me.
Thanks!!
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:36 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subjec
Do I have to do anything different to access an array in a class? I have
var $apcs = array();
at the top of my class
I set it using
$line1->adj_array[$pos] = (integer) $value;
in the read-in part of the app that uses the class ($line1 is the object,
$pos is just a number)
Later o
My officemate and I talked about this and the only thing he could come up
with was a possible problem with your parser. Are you using a beta version
or something unusual? I don't know if you have a way to know this - the
programmers didn't set up PHP where I work, but I know our web server is
ap
Does it show the message and the form or just the message?
-Natalie
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] If else question
> If and else expect to be followed by exactly 1 st
Do you want to submit every time the dropdown changes? If you just want the
second dropdown to update and don't want a submit, let me know. I am doing
this in one of my programs and I can send you some code if you think it
would help.
Ex of my program:
We want to show populations. There's a s
Hello,
I'm making an Image and I was wondering what the difference is between these
two Image constructors. I need to find a way to make dotted and dashed
lines (according to different patterns I've been given) and I want the
sections between the dots to be transparent. I'm planning on using t
You can use as many elseifs as you need. I'm not sure how it affects
performance, but it works (I have one that goes through all 50 states).
-Natalie
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 10:02 AM
To: PHP
Subject: [PHP] if elseif
According to this, you should actually use unlink, but delete is available.
http://www.php.net/manual/en/function.delete.php
-Natalie
-Original Message-
From: jas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 4:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] file delete...
Ho
54 matches
Mail list logo