How about select max(floor(field)) from table ?
TK
> -Opprinnelig melding-
> Fra: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> Sendt: 22. oktober 2001 08:44
> Til: Php-General (E-mail); MySQL (E-mail)
> Emne: Max int value of char field? How to find...
>
>
> Hello all,
>
> How can I find t
Hello all,
How can I find the highest integer value in a result set like:
1
10
11
2
3
a
ab
abc
I'm looking for the value 11.
The statement 'select max(field) from table' gives me 'abc' so this won't
do.
Any ideas for a SQL statement that will do the trick?
I'm using PHP / MySQL.
Thanks!
Si
Phil Davis has developed HTML_graphs : it draws various html base charts.
See his website at http://www.webguys.com/pdavis/programs/html_graphs/
Philippe
"Mirek Novak" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Try this http://www.aditus.nu/jpgraph/
>
> M.N.
> ---
>
>
> form tag in NS (4x - 6x) there is some additional space
The form tag is a block level tag, thus white space will be appended
after the closing tag.
To avoid this, I use a style on the form element. I do this for both IE
and Navigator, in different ways, as I've found they seem to react
diffe
If you're on RedHat, then you could also use vi/vim/gvim, Emacs/XEmacs, and
I think RH 6.2 probably also had Glimmer, NEdit, and some others. You could
also search the archives of this list since this topic gets asked a lot :)
Try Active State's Komodo (http://www.activestate.com), which is an ID
Hi,
I was wondering are there any editor programs for PHP?
Right now, I am using RedHat Linux 6.2 and I have to type everything by
telneting into the server and using Pico.
Thanks.
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
If that happens it would be great.
At 00:33 22/10/2001 -0500, Matt McClanahan wrote:
>On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote:
>
>Preface to these ramblings: Exception handling is planned for the next
>version of the Zend engine. For details, see
>
>http://www.zend.com/zend/
Æß²Ê¹ÈÁ¦ÍÆÐÂÆ·£ºÉñÏÉ·Û£¡¼ÛÓŵĺòúÆ·£¡
ÉñÏÉ·Û££·þÓúóÊý·ÖÖÓ£¬¼´ÄÜÐË·ÜÅ®ÐÔ´óÄÔÉñ¾£¬²úÉúºÃ¸ÐºÍ¿ÊÍû¡£ÎÞ¶¾¡¢ÎÞ¸±×÷Óá¢ÎÞñ«ÐÔ¡£
http://shop.7cv.com/shop/index.php?asstfrom=7cvtest34
ºÃÕ¾Äѵ㬿ì¿ì¼ÓÈëÊղؼÐÓ´£º£©
¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
¸ü¶à³ÉÈËÓÃÆ·¡¢±£½¡Æ·¡¢ÇéȤÄÚÒÂ...
¾¡ÔÚ£º
Æß²
Try this http://www.aditus.nu/jpgraph/
M.N.
---
Christian Dechery wrote:
> I'm working on (actually I'm almost finished) on a very nice ad management
> system.
>
> It has a script that generates a very informative report, in HTML. But I
> wanted something more... like some comparative chart...
You don't need to use javascript unless you're lookin for "select all"
functionality.
I think what you are looking for might just be to have many checkboxes that
can be selected at a time?
You can look in the manual, but the trick is just to name your form fields
with a [] at the end. So, it wo
This is expected behaviour.
Ashley M. Kirchner wrote:
> I have the following snippet in my file:
>
> if ($PATH_INFO == "") { $PATH_INFO = "/"; }
> echo "PATH_INFO: $PATH_INFO\n";
> // All we want is the fist element, call it $section
> list($section) = explode('/', s
Use JavaScript.
Read PHP Manul if you need to pass array form vars.
There is a section for that.
Srinivasan ranganathan wrote:
> Hi all
>
> How can i implement a hotmail-inbox like checkbox
> functionality?
>
> thanks in adv
> Regards
> Srinivasan Ranganathan
--
Yasuo Ohgaki
--
PHP Genera
On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote:
Preface to these ramblings: Exception handling is planned for the next
version of the Zend engine. For details, see
http://www.zend.com/zend/future.php
> The nasty thing then comes in that if any task fails, I have to stop. So I
> cr
make a php page that prints out the html, and direct the form's action to
$PHP_SELF.
then have some sort of test to determine if there's been a post, process the
data, etc, and you're set.
-Original Message-
From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22,
Hi
Instead of using a html and a php page, how can i use
a single php page to process data?
thanks in advance
Srinivasan Ranganathan
*NEW* Connect to Yahoo! Messenger through your mobile phone *NEW*
Visit http://in.mobile.y
I am just doing something at the moment in PHP, which is naturally
suited to managing via a "try,catch" kind of structure which just isn't
in PHP and means I am having to be very, very careful. I just
thought I might use it to put the case for some exceptions.
Basically, I have a whole bunch of
"Reductor" <[EMAIL PROTECTED]> wrote in message
news:003a01c15654$4d89c280$eb00a8c0@mum...
> > > How do I view these *.php pages locally. I'm using Windows
> > > NT and I have both MSIE (preferred) & Netscape.
> http://miniserver.wxs.org Is the URL to the Miniserver Site Its a great
> little web
For me, using FastTemplate & calling back the same script is the best idea.
Using flags, you can have a different response by using a different
template, yet retain all the POST data.
HTH,
At 03:49 AM 10/22/2001, Chip Landwehr wrote:
>I got a form that a user fills out. When they hit submit t
I saw another post on this that got no response, I figure I should try
again before filing another bug report. I've got some perl cgi scripts
that I have to keep, and I need them to do some things in php that are
already done in php, it's not really practical to rewrite either of these
so it's al
you could just declare one multidimensional array as a session var, then
carry that aroundthat's easiest way i've found.
jack
-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 8:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Submit
lol NP--actually I am using sessions-Will I have to declare each form
variable as a session variable to do this?
"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sorry chip, i'm so used to using sessions, i just kind of assumed you
would
> :-)
>
sorry chip, i'm so used to using sessions, i just kind of assumed you would
:-)
sessions will carry the data around.if you can't/won't use them, you
could use curl to post the values along, but sessions are much more elegant
for this kind of thing
my $.02
jack
-Original Message-
From
Visual SlickEdit is available on Linux, Win32, and about a dozen other
platforms (except MacOS). I use it on both Windows and Linux (was one of
the reasons I chose it, although now that I've used it, I have many others
:) It's a great editor, worth every penny I spent on it. Komodo has a
Win32
But won't using a header kill all the form data? Thought you had to use
post for that?
"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sure, have to states for your script, one is the normal blank form, the
> second is the check.
> in your che
sure, have to states for your script, one is the normal blank form, the
second is the check.
in your check, validate the data. if its not good, print the form out again
with those values already filled in if they apply.
if it is good, redirect to a new page using header(); http://php.net/header
be
At 17:20 21/10/01 -0700, you wrote:
>You can try ActiveState's Komodo.
>http://www.activestate.com/Products/ASPN_Komodo/
> It supports PHP, Perl, Python, etc., has a debugger, pretty cool
> editor,
>etc. It's only a 1.0 (at least the last time I used it), but was pretty
>solid for a 1.0.
I got a form (form.php) that recalls itself when you hit submit to verify
all the fields. If all the fields are good, I need it to automatically post
to a new page. Anyway to do this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
You can try ActiveState's Komodo.
http://www.activestate.com/Products/ASPN_Komodo/
It supports PHP, Perl, Python, etc., has a debugger, pretty cool editor,
etc. It's only a 1.0 (at least the last time I used it), but was pretty
solid for a 1.0.
What are you looking for in an IDE? Instea
Hi all.
i tried to compile new
Apache/2.0.27-dev
PHP 4.2.0-dev
(both get from CVS)
On FreeBSD-stable 4.4 (CVS)
when i start apache with php module , i get this:
Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: Undefined symbol
"pthread_gets
I'm working on (actually I'm almost finished) on a very nice ad management
system.
It has a script that generates a very informative report, in HTML. But I
wanted something more... like some comparative chart... or pie chart...
can anyone give some hints, where can I find info on this? Is this
Can you guys give me some hints of IDEs for programming PHP in Linux?
thanks
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
ok, several different solutions, best being:
1. use sessions. this is probably the simplest, most robust way of doing it,
after you've become familiar with sessions.
2. as someone mentioned before, use one page that posts to itself. this
would be easier than using sessions, but not as powerful.
On Sun, 21 Oct 2001, Chip Landwehr wrote:
> if ($T3==""){header ("Location: new_narrative.php?FilledName=No");}
>
> How do I change this to include a Post?
You can put it back on as a query string (kinda dirty, but you can't POST
it back).
~Chris /"\
Why not just post to the same script, then you don't have to worry about
this?
Hth,
-AD
"Chip Landwehr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I can't do that because the form is to big and there is a limit to how
much
> data you can send via the UR
Ok, it works!! Thanks to everyone for their suggestions and answers. This
group is a great resourse. Thanks again
...Brad
"Brad Melendy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks James,
> I tried a regular expression comparison first, but
That URL was probably better than any other answer you'll get...
Do a phpinfo() and give us some insight into your install.
-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 5:34 PM
To: PHP is not a drug.
Subject: Re: [PHP] enable truetype
@ 5:33:52 PM on 10/21/2001, Brian Clark wrote:
>>> Does anyone know what it's going to take to get access to the function
>>> imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
>>
>http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tiff_pdf_su
Hi speedboy,
@ 4:24:56 PM on 10/21/2001, speedboy wrote:
>> Does anyone know what it's going to take to get access to the function
>> imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
>
>http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tif
Chip Landwehr wrote:
>
> I can't do that because the form is to big and there is a limit to how much
> data you can send via the URL bar. Any other ideas?
Use cookies.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I can't do that because the form is to big and there is a limit to how much
data you can send via the URL bar. Any other ideas?
"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> if ($T3==""){header ("Location:
> new_narrative.php?FilledName=No&vari
if ($T3==""){header ("Location:
new_narrative.php?FilledName=No&variable1=hello&variable2=goodbye");}
etc etc
- seb
-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: 21 October 2001 21:03
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Form Question
I got that but the p
> Does anyone know what it's going to take to get access to the function
> imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html
--
PHP General Mailing List (http://www.php
I got that but the passing back I'm having a problem with. This is waht I
got:
if ($T3==""){header ("Location: new_narrative.php?FilledName=No");}
How do I change this to include a Post?
"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> well all o
well all of the entries are passed via post or get to your form handler
(obviously). So just pass them back when you re-call the form.
then put in
in the form
or something like that anyway.
- seb
-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: 21 October 2001
I got a form that a user fills out. When they hit submit they are
transfered to a PHP page that verifies their data. If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
Unfortunatel
Thanks James,
I tried a regular expression comparison first, but it was eluding me. I'm
new to PHP (trying to convert form ASP) and part of this is me trying to
convert my ASP/VBSCRIPT to PHP. ;-) I actually have a FOR loop evaluated
when the conditions of the IF statement are met, and I suspec
Hi Brad,
This worked for me:
.. but I'd tend to go for a regex as a solution to what you're after,
which involves less code:
Just my thoughts...
James
"Brad Melendy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> Ok, this works:
>
> if (su
That's odd ... the code I gave you I tested prior to pasting into my
email, and it worked fine ... and still does. I'm not aware of any bugs
with logical "or" in any versions of PHP. If this doesn't work for you,
I'm not sure where to go. (It works on my server ... PHP 4.0.6-5 ...
and my perso
I have "wrapped around" my web page, my form tag -- my pages are
auto-expanding -- that is, always flush with the left, right, top and bottom
of the users browser... in IE - the form tag (wrapped around the page)
doesn't cause a problem -- however, in NS (4x - 6x) there is some additional
space at
No. You cannot initiate multiple transactions that way (at least not without
considerable glue outside of PHP, such as JavaScript etc to cause the browser
to initiate multiple transactions; but it cannot be done directly from the
server side as the client only asked for one file).
You could z
U can either use something to zip the whole directory up, and then download
that 1 zip file.
OR
You could use some JScript or something to make X number of windows popup,
each with a file to be saved...
Other than that I'm not sure what u can do... Unless you generate GRX files
or similar things
Forget this one, i'me being stupid.
At 04:26 P 21/10/01, Ben Edwards wrote:
>This is really strange, found this function someware (cant remember where)
>and it works. What I cant find is any reference to filerpos, filelen or
>subfile on the php website! They are not functions I define in any
Hi All,
Tag {HEADER} not found in template loginform.inc.php.
What could be the error of this error-message.
The tag exist in row 1 loginform.inc.php of like:
{HEADER}
TIA
Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Nope it fails when he removes the line. It fails on me as well, I tried
it. Also note I did say that the ouput of phpinfo() was correct. The
output showed the page had been handled by the php cgi binary, not the
module.
The module has a large config line and several extensions
configured in, the
Hi Mark,
I don't think you can download an entire directory at once. You'll probably
have to get a directory listing, and download each file in that directory.
I'm not sure though.
Good luck,
Tyler
- Original Message -
From: "Mark Lo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: S
Hi,
I know I can use the following code to download a single file, but how
can I download the whole directory by using the following code. Please
help.. (I am using PHP & Apache)
Thank you
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Thanks Chrisopher,
Yeah, I was a tad confused. What I wanted to say in my statement was really
this:
if ((substr($sString,-1,1)!="-") or (substr($sString,0,1)!="-")) {
print "do this if there isn't a dash at the beginning or end of your
string";
}
else {
print "you can't have a dash at the begin
Hi,
well I do understand your needing.
First a question. What are your compile options, e.g. your configure call?
Do you use --enable-discard-path ? If not, try this. You need this option to
run Phpscripts from cgi-bin folders!!!
Greetings,
Stefan Siefert
-Ursprüngliche Nachricht-
Von
Hi,
Thanks Stefan for your answer
First, I'll explain why I want to use php in cgi
I'ts a simple reason, some users want to use php without safemode (which is
required with Apache due to safety problems). So I want to use php in cgi
mode with suexec.
I've tryed your solution, it works in all
Martin Lindhe wrote:
>
> Bug in str_replace(), PHP 4.0.6
>
> $text = "hello world";
> $out = str_replace(" "," ",$text);
> echo $out;
>
> Expected output:
> "hello world"
>
> Actual output:
> "hello world"
>
> Of course, this is what happens if str_
[EMAIL PROTECTED] (Martin Lindhe) wrote:
> Bug in str_replace(), PHP 4.0.6
>
> $text = "hello world";
> $out = str_replace(" "," ",$text);
> echo $out;
>
> Expected output:
> "hello world"
>
> Actual output:
> "hello world"
>
> Of course, this is w
Bug in str_replace(), PHP 4.0.6
$text = "hello world";
$out = str_replace(" "," ",$text);
echo $out;
Expected output:
"hello world"
Actual output:
"hello world"
Of course, this is what happens if str_replace() does replacements on input,
but not o
This is really strange, found this function someware (cant remember where)
and it works. What I cant find is any reference to filerpos, filelen or
subfile on the php website! They are not functions I define in any inc
files. Anyone know where these are documented?
Ben
function get_file_ext(
Hi there,
How it would be possible to draw a "thich" arc with PHP & GD? You can see a picture
here about thing I mean:
http://www.pilotmedia.fi/xfiles/circle.jpg
ImageArc -function is just what I need, but it makes all arcs only 1 pixel width.
Any ideas?
Cheers,
- Ville
--
PHP General Ma
Hi all
How can i implement a hotmail-inbox like checkbox
functionality?
thanks in adv
Regards
Srinivasan Ranganathan
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit
http://in.groups.
I have the following snippet in my file:
if ($PATH_INFO == "") { $PATH_INFO = "/"; }
echo "PATH_INFO: $PATH_INFO\n";
// All we want is the fist element, call it $section
list($section) = explode('/', substr($PATH_INFO,1));
if (is_int($section)) {
echo "s
pane teda c:/php voi c:/windows
--
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]
Greetings,
Does anyone know what it's going to take to get access to the function
imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now.
Seems like I have everything but the kitchen sink enabled, but no
matter what I do I can't get ttf+gd+php functioning together.
% egrep '(true|f
What happened with the online annotated manual? Going to /manual/en
(from docs.php) just returns the index to the directory with manual.php
in it (and some others). Something's broken I think.
I can no longer hit http://www.php.net/ and get the
annotated page returned. All it returns
Please ask support questions at [EMAIL PROTECTED]
And, check what type '$this->a' is. It's probably not an array.
- Markus
On Sun, Oct 21, 2001 at 05:33:25PM +0800, fatbobman wrote :
> when i try to open add a record to my db..
> php tell me
> Warning: Cannot use a scalar value as an array in
DL Neil wrote:
>>Khalid Hazmi wrote:
>>
>>>How I can download the current Annotated PHP Manual???
>>>
>
>
>>There is no such thing... AFAIK.
>>
> => Yasuo Ohgaki
>
>
> Yasuo: Yes there is (and VERY useful it is too), check out the range of PHP
>documentation available from
> http://www.php.n
Everyone uses ATM machines at one time or another,
and if you are seriously looking for a way to generate
income in a secure and consistent manner,
the ATM business might be what you are looking for.
We can show you how to Profit daily and be a part of
this $ 375 Billion dollar industry.
Our
We can help!
Mortgage Rates have been slashed again!
*Lower your monthly payment!
*Shorten the term of your loan!
*Reduce your interest rate!
SAVE MONEY!!!
NOW is the time to refinance... rates have
NEVER been lower!
We CAN assist everyone, even if you've
been turned down before!
Take just a
The main manual seems to be down right now, probably being rebuilt...
Take a look at:
http://www.php.net/manual/en/html/
strip_tags() is under "String Functions", and has been around for a
while.
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21,
74 matches
Mail list logo