Stuart Dallas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
As far as I know, serialize will handle multi-dimensional arrays. If I
were you
I would suck it and see.
And how should I store a serialized variable in my database? As String or as
Blob?
--
PHP
I am looking for an example or an explanation
of how to set up a stylesheet so it will
enable a user to query content in an XML file.
For instance. Have an XML file with names and addresses
and the user would be able to search for a name and
get back a list of matches.
This would need to work
hi
i want to start learning this PHP, i've got the manual
but i need a kind of a starting point? any suggestions
Adriaan Putter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How can I do this in PHP. Could somebody just point me in the write
direction
open (REQ, |$Openssl_cmd req -new -config /usr/lib/openssl.cnf
. -key $cert_dir/key -days $days -out $cert_dir/request 12) ||
return
Well, it depends on how well you know the basics of programming. If
you're a total newbie, first of all learn how you use variables,
conditional statements and loops. Without these you're powerless! :)
One way is to just create a simple form on one page and then try
thingies you can do with the
im not a newbie programmer, not all the stuff
just want something on standards on PHP and how
to start a script, or something to start with in
the end i will use the manual on all the functions
just need some basics on PHP...
-Original Message-
From: Niklas Lampén [mailto:[EMAIL
Hi everybody,
i installed php(4.2)/mysql(2.2.3) on my local server and when i send a query
using UPDATE or INSERT to the database, i almost got the results twice.
When i put the same Database on a public webserver (hosteurope), everythin
works fine.
What is the mistake?
thank you for any
Here are some tutorials:
http://www.devshed.com/Server_Side/PHP/
http://www.phpbuilder.com/
http://www.phpdeveloper.org/tutorial.php
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2002 4:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] tutorials
im
Double check that you have a.title, and not just title by itself. Two
tables must have a title column, so make sure you specify which one you
mean.
---John Holmes...
- Original Message -
From: Aaron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 12:40 AM
Ed,
That's possible. I'm on NT running IIS4. I've followed all the guide without any
success. This site is due to go live and take over from one in my office in the next 2
weeks.
Help please someone?
George
Lazor, Ed [EMAIL PROTECTED] wrote: I don't know the answer, but... It sounds
Hello,
Can anyone please tell me how to do the following...
I am having one text file..by checking some presence lines continuously i
have to extract that line and manipulate them..how i will do this..Can
anyone please suggest me how do i go about with this...
For example
First: ..
Well I reinstalled the latest php with sendmail installed this time and it
works...
Thanks..
--
Sapilas@/dev/pinkeye
Septic Flesh [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Well I have install the second version from the
Thanks .it was the
registers_global = Off..
But how on earth we can implement a better way ? I mean how to move
variables around safely ?
--
Sapilas@/dev/pinkeye
Septic Flesh [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I don't understand what you want at all, but you can use fopen() to open
your file and read it from there...
www.php.net/fopen
---John Holmes...
- Original Message -
From: Uma Shankari T. [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 6:46 AM
Subject: [PHP]
Well anybody who wants to join Liam Mackenzie's hosting...
Here's the touching response I got...
.. Shows a great deal of maturity... Thankfully he doesn't start some sort of
hosting company...
After all customers would be very very upset if there was some kind of publicity stunt
I need to send the data from a form without taking the surfer to that page.
ie:
form on ' formPage.php '
with
form name='foo' method='post' action='../newUser.php'
but leave the user on ' formPage.php'
Any way to do that?
Thanks
Hi,
is there a way (php function, class, or a stand alone program (non-php)
to easily convert unicode text that represents Japanese words in romaji
into EUC_JP or SHIFT_JIS?
thanks,
Simon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I need to send the data from a form without taking the surfer to that page.
ie:
form on ' formPage.php '
with
form name='foo' method='post' action='../newUser.php'
but leave the user on ' formPage.php'
Any way to do that?
[/snip]
At the end of newUser.php do a header redirect, i.e.
Hi all,
I've got a mailing on a website, with email address' / names / etc in a
MySQL table.
I think there's around 120 on it at the moment.
I've been noticing a growing lag on the sending of mail though... I've got a
script which takes a message from a form, then runs a while loop through the
I am providing a free hosting service for PHP Developers. This is something
that costs me a considerable amount of money and time to maintain, and I am
giving it away for free.
After being abused by you time and time again, I removed your account from
my servers and declined your request to
Hello,
On 06/12/2002 08:44 AM, Justin French wrote:
If I didn't want to personalise the emails, I'm sure the script would run a
lot quicker with every address in the Bcc header, but since we personalise
each email, I can't see any option other than using mail() 200 times... and
it's only
One solution could be this:
You only need on page for this:
1) create an array of recipients
2) get value from array like array[$pos];
3) send mail to this receiver
4) now some javascript, unless ofcourse if $pos is bigger than
count($array): location.href =
Hi everbody,
I use Php 4.0.6 with oci and when I try to use OcibindByname php function
I receive the following warning :
Warning: Call-time pass-by-reference has been deprecated .
The problem is that this function requires the use of vars
Any advice on the subject ?
Laurent Drouet
--
Abusing you???
I am quite sorry but I am lost as to when I abused you?
I simply had a form of service on your system and after I tried to keep
updated with what was going on I was kicked off..
If you couldn't handle the load.. Don't blame me..
I was patient.. All I wanted was a reply..
From: Dave [EMAIL PROTECTED]
have created multiple file upload scripts in the past... all work like a
charm,
always used with files less than a meg or two.
have a use for it now where the user requires upload of a 6-10mb file and we
are
running into problems with browser timeouts(for
I know this has been discussed many times, but I've been hunting through the
archives with very little resolution on the issue.
I've found the following note in the annotated manual:
Additional notes to my workaround on Q266305:
I have tested my findings with PDF, XLS, DOC and ZIP. However
Can we take this off list
PS: you only get what you pay for
Justin French
on 12/06/02 10:49 PM, The_RadiX ([EMAIL PROTECTED]) wrote:
Abusing you???
I am quite sorry but I am lost as to when I abused you?
I simply had a form of service on your system and after I tried to keep
Hello,
Assume I have the following array:
$array = array (
apple = cherry,
foo = bar,
wom = bat
);
How could I easy remove the key and the value of the key foo from that
array?
Also, what is the best (and quickest) way to add a key with a value to the
end of this array?
Thanks in advance,
hi leon,
Hello,
Assume I have the following array:
$array = array (
apple = cherry,
foo = bar,
wom = bat
);
How could I easy remove the key and the value of the key
foo from that
array?
unset ($array[foo]);
Also, what is the best (and quickest) way to add a key
20% represents a space.
-Jared
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 9:01 AM
To: php
Subject: [PHP] forcing file downloads
I know this has been discussed many times, but I've been hunting through the
archives with very little
How about if you just return the user to the same page? Will
that work?
-Original Message-
From: Bret L Conard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help with forms data please
I need to send the data from a form
Being relatively new to php, I discovered the following after about 2 hours
of debugging last night and was wondering why???
I had the following code:
if ( $num_results = 0 )
{
echo no records found;
}
else
{
for ($i=0; $i $num_results; $i++)
{
display
That's how I do it when I need to handle the data and return user to the
same page.
Use header(Location: blah); in the end of the handler page. Then even
'back'-button won't take user back to the handler page, and refresh
won't send data again.
Niklas
-Original Message-
From: Jonathan
Wouldn't you need
if ( $num_results == 0 ) not
if ( $num_results = 0 )
if you do the latter, it will allways be true, because you're setting the
var...
easy mistake to make!
check out comparisons in the manual for more info.
Justin French
on 12/06/02 11:19 PM, Roberts, Mark ([EMAIL
If you still have an error there, change
if ($num_results = 0)
to
if ($num_results == 0)
See the difference? Realize the error?
Niklas
-Original Message-
From: Roberts, Mark [mailto:[EMAIL PROTECTED]]
Sent: 12. kesäkuuta 2002 16:20
To: [EMAIL PROTECTED]
Subject: [PHP] Else/For loop
Ok guys. Please take this OFF THIS LIST. Your fight, in itself, has
nothing to do with PHP. If you want service, than be smart and don't go to
a free service. If you do go to a free service, than don't expect great
service. Actually, if you go to a free service, you don't have a right
Hi Mark!
Being relatively new to php, I discovered the following after
about 2 hours
of debugging last night and was wondering why???
I had the following code:
if ( $num_results = 0 )
{
echo no records found;
}
else
{
for ($i=0; $i $num_results; $i++)
{
Thanks to everyone who replied. Of course it should be '=='. I was too
focused on why the for was not working and overlooked the obvious.
Mark Roberts
Sr. Systems Analyst
LanApps/Web Development
The Williams Information Services Corporation
918-573-1706
[EMAIL PROTECTED]
-Original
Hey!
Which PHP option should I use for compiling with the XML support. I'm
using the standard XML support on the web and I found there are 4 or 5
different PHP option for XML. Which should I use? The example of the XML
is ..
-- clip --
?xml version=1.0 encoding=UTF-8?
NetConnectRequest
Any word on when glob() will be in the production version?
thanks for the help Miquel.
- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: Tom Ray [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:01 AM
Subject: Re: [PHP] Unlink question more or less
Hi Tommi:
On Wed, Jun 12, 2002 at 10:54:16AM +0200, Tommi Trinkaus wrote:
i installed php(4.2)/mysql(2.2.3) on my local server and when i send a query
using UPDATE or INSERT to the database, i almost got the results twice.
When i put the same Database on a public webserver (hosteurope),
Yes Miguel, i've set all the required environment to the .bash_profile for
the user oracle.
What im wondering are , i've also installed oracle/php/apache in AIX server
and my php scripts with ora function just work. But for the RedHat Linux i
should run apache as oracle/dba. I've also set all the
Dear Sirs/ Madams, dear friends,
the PHP Center and the Software Support Verlag are pleased to announce the
International PHP Conference 2002 in Frankfurt, Germany. Like last year, for
the first International PHP Conference, we want to present an interesting
and various programme to the
Justin French wrote:
snip force code /
1. Is this a widely accepted practice for forcing downloads (a pop-up
window
to download a file), given the problems with older versions of IE?
I believe so.
Sad, really :o). Y'see, what you're doing is forcing your own
preferences on the user
Justin French wrote:
snip force code /
1. Is this a widely accepted practice for forcing downloads (a pop-up
window
to download a file), given the problems with older versions of IE?
I believe so.
Don't.
2. Can someone tell me what the %20 is there for?
You can try typing
2. Can someone tell me what the %20 is there for?
The %20 (I forget the exact explanation, sorry)
is basically code for the space.
% in a URL means thats its gonna be followed by a 2 digit hex number
referencing directly to the ascii table.
20 is the hex equivelant for . You could rewrite
Analysis Solutions wrote:
Hey Danny:
On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote:
Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1
GROUP BY FIELD1
Now I want to print a
Hey guys... I'm currently using PHP, FreeTDS, and Sybase libraries to
access a database on an MS SQL 2000 server. Things are going fine, except
for my more complex queries. Here is an example:
SELECT Servers.Name, Nics.MAC
FROM Servers INNER JOIN Nics ON Servers.ServerId = Nics.Server
WHERE
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 Query Help
Make the target of the form a blank window. process the form, then generate
some javascript to close the window. original window remains unchanged.
---John Holmes...
- Original Message -
From: Bret L Conard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 7:33 AM
Hello all,
I'm getting sudden timeouts in a site that makes use of sessions to keep
login information. In every page, a function is called that does:
session_set_cookie_params (1200);
session_start();
These timeouts don't seem to present any time or place pattern, they occur
randomly, before
Do it just like you would with prev/next links. Use LIMIT in your query to
get out 50 or so at a time. Loop through them, sending mail, then use header
to automatically redirect to the next page, incrementing the number to use
in LIMIT.
---John Holmes...
- Original Message -
From:
Hi PHP folks,
I have a program that sends out email by making socket
connection to our email server. The problem is that the program is very
slow because it has to finish talking to the email server until it can
proceed with the next email (as opposed to the mail() function that just
Ive asked this question in another group with no luck so maybe you guys have
an answer.
Im looking for a way to detect the clients Win2k network username, im using
Apache2 PHP4.2.1 on a Win2K network with a domain, ive tried REMOTE_USER and
that just prints a hyphen. This whole issue has been
That's one of the main reasons you would want to use the mail() function.
I wouldn't advise a fork() here, but if you really insist, see the pcntl
extension - http://php.net/pcntl
-Rasmus
On Wed, 12 Jun 2002, Nathan Cassano wrote:
Hi PHP folks,
I have a program that sends out email by
On Wed, Jun 12, 2002 at 04:54:30PM +0200, Danny Kruitbosch wrote:
Analysis Solutions wrote:
Hey Danny:
On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote:
Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB
Hi there,
I am wondering whats wrong with my php script. I am trying to write a
newsletter to 150 members. Therefore I did seperate the adresses with a ,
After about 1 minute php gave up telling me mail has failed.
Is there a restriction on sening mail via mail(xx) via php?
Anyway what do I do
additional comment:
some did recieve the email, some did not.
does anybody know a good solution?
andy
Andy [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
I am wondering whats wrong with my php script. I am trying to write a
newsletter to
Andy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Anyway what do I do if I would have 1 members. This might take lots
of
cpu?! So I would like to keep it via my webinterface, but be able to
email
to all members.
Hello Andy,
My suggestion is to just
Is your mail server timing out? Do you need to put a set_time_limit() at
the top of your script? Another possibiity is to only send a few at a
time, some ISP's do not permit more than a set amount of messages to leave
per minute.
On Wed, 12 Jun 2002, andy wrote:
additional comment:
On Wed, 12 Jun 2002, andy wrote:
Hi there,
I am wondering whats wrong with my php script. I am trying to write a
newsletter to 150 members. Therefore I did seperate the adresses with a ,
After about 1 minute php gave up telling me mail has failed.
Why re-invent the wheel when there are
Where in config have I to change something to make Apache understand
/root/index.php as /root/ ?
Thanks
Makis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have looked through php.net and the books that I have and I am confused,
so I hope that someone can help me out here. I am trying to sort an array
that I have. I use a while statement to fill the array:
$teams[++$i][team_id]=$row-team_id;
$teams[$i][name]=$row1-name;
On Wed, Jun 12, 2002 at 12:49:36PM +0300, savaidis wrote:
Where in config have I to change something to make Apache understand
/root/index.php as /root/ ?
To make the directive specific to that directory and all directories under
it:
In /root make a file called .htaccess
In that
--xml
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML with PHP?
Hey!
Which PHP option should I use for compiling with the XML support. I'm
using the standard XML support on the web
Hello,
On 06/12/2002 12:13 PM, Nathan Cassano wrote:
Hi PHP folks,
I have a program that sends out email by making socket
connection to our email server. The problem is that the program is very
slow because it has to finish talking to the email server until it can
proceed with the
Greetings, everyone.
I'm new on the list (not so on PHP).
I'm stuck with a little problem, I'm trying to implement some PHP pages at work, where
ASP is used. The platform is NT 4.0 SP6, with PHP 4.2.1.
My problem is that with ASP I can have something like
Request.ServerVariables(LOGON_USER).
Hello,
I am currently testing out some things with removing elements from arrays,
and I find it strange that the following statement does not work for me:
unset($array['element'])
I wrote a little test script, you can see the source at
http://www.antrophia.com/test.txt and the executable at
I use the following php.ini config.
Do I need to configure the sendmail seperatly to successfully send an email
? with Linux ?
In my win32 os email works ok..but in the linux box nothing is sent..
~~php.ini
[mail function]
; For Win32 only.
function checkEmail($strEMailAddress)
{
return eregi(^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$,
$strEMailAddress);
}
You have it now :).
Regards,
Pedro Alberto Pontes
Jeroen Timmers [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there a
Depends on the average size of data that you're working with. You have to
count how many bytes each array take up. I think the sizeof function will
do this for you.
-Ed
-Original Message-
And how should I store a serialized variable in my database? As String or as
Blob?
On Wednesday, June 12, 2002 at 5:48:02 AM, you wrote:
An 'exit' directive had secretly sneaked into the script! which caused ns to
abort the rest of the script (as it should) while ie blissfully ignored
it(??). Anyway it all works now. Thanks again.
Just thought I'd point out an error in
What would be the equivalent of this in php. Mostly the open (REQ and
the print REQ USER_INFO; to the close REQ; Could somebody just point me in the write
direction.
open (REQ, |$Openssl_cmd req -new -config /usr/lib/openssl.cnf
. -key $cert_dir/key -days $days
On Wednesday, June 12, 2002 at 7:18:18 AM, you wrote:
And how should I store a serialized variable in my database? As String or as
Blob?
Since serialize returns a string, I would guess that you store it in a
mongoose. Sorry for the sarcasm, but it's getting late and that info is on the
manual
It is working.
The last two tests you were running weren't actually the same, which was
confusing your testing results. I've altered the code a little for ease of
testing. It's included below.
-Original Message-
You will see that $unserialized['foo'] still exists! Can anyone explain
-Original Message-
From: Laurent Drouet
To: [EMAIL PROTECTED]
I use Php 4.0.6 with oci and when I try to use OcibindByname php
function
I receive the following warning :
Warning: Call-time pass-by-reference has been deprecated .
The problem is that this function requires the use of
not checked, but something like:
$fp = popen(|$Openssl_cmd req -new -config /usr/lib/openssl.cnf .
-key $cert_dir/key -days $days -out $cert_dir/request 12) ||
return(doh!);
fputs($fp, $subject['C'] . \n);
...
...
...
pclose($fp);
On Wed, 12 Jun 2002 [EMAIL PROTECTED] wrote:
On Wed, 12 Jun 2002, Septic Flesh wrote:
I use the following php.ini config.
Do I need to configure the sendmail seperatly to successfully send an email
? with Linux ?
; For Unix only. You may supply arguments as well (default:
sendmail -t -i).
sendmail_path =/usr/sbin/sendmail -t
Kind of an off-shoot question, but has anyone created functions to interface
PHP and one of the popular mailing list management software packages like
Majordomo or Mailman?
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:29 AM
To: andy
On Wed, 12 Jun 2002, Carl Whittaker wrote:
Ive asked this question in another group with no luck so maybe you guys have
an answer.
Im looking for a way to detect the clients Win2k network username, im
using Apache2 PHP4.2.1 on a Win2K network with a domain, ive tried
REMOTE_USER and that
Hello,
On 06/12/2002 01:43 PM, Arturo Barajas wrote:
Greetings, everyone.
I'm new on the list (not so on PHP).
I'm stuck with a little problem, I'm trying to implement some PHP pages at work,
where ASP is used. The platform is NT 4.0 SP6, with PHP 4.2.1.
My problem is that with ASP I
Ilia and I were discussing FUDForum and general forum features. That made
me wonder... Are there forums that integrate pop3 web mail support?
-Ed
This message is intended for the sole use of the individual and
On Wed, 12 Jun 2002, The_RadiX wrote:
Well anybody who wants to join Liam Mackenzie's hosting...
Here's the touching response I got...
After all customers would be very very upset if there was some kind of
publicity stunt against his company. wouldn't they?
* snigger snigger *
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Hi, Manuel.
I don't agree and even think that it is a stupid thing to say because
open source is not about excluding Windows users even if
there are much less open source developers with Windows knowledge
there is no point in making Windows
Ed,
Currently none to my knowledge, however, YaBB SE 2 which is in development
has this feature roughed in already. However, it's still in development.
Jeff
- Original Message -
From: Lazor, Ed [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 1:35 PM
Subject: [PHP]
Is there a way to post input types that are hidden with out using a html form in
php? I know you can do it in java script with Form.submit().
So... if I have three hidden fields can I post them without pressing a button that
uses a form by using a php function?
Thanks in advance.
Kris
No, because PHP is server-side.
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] form post
Is there a way to post input types that are hidden with out using a html
form in php? I know you can do
There's no way to for PHP to say Yo, let's ride... submit that form
Client-side manipulations must be done client-side, with
javascript or something similar.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
Kris Vose [EMAIL PROTECTED] wrote in message
[EMAIL
There's no way to for PHP to say Yo, let's ride... submit that form
Client-side manipulations must be done client-side, with
javascript or something similar.
But you can use a function/library called PostToHost() (or something
like that). Search on phpbuilder.com for it. This issue has
PHP has heredoc capability, though it'll look a little strange since
you'll need the () around the parameters. It's also used a little bit
differently. Here's the code:
$fp = popen($Openssl_cmd req -new -config /usr/lib/openssl.cnf
. -key $cert_dir/key -days $days -out
Howdy,
If someone out there could tell me how to get rid of a single key/index pair within an
array, it would be great. I've tried both unset() and empty(), but both destroy the
entire array.
Please CC me directly, as I'm on the digest.
Thanks in advance!
Martin
--
PHP General Mailing
Im sorry if this mensaje is posted twice. I sent it yesterdays, but
then my ISP had problems with e-mail and I lost dozens of them and dont
know if sent OK.
Hi all,
What Im trying to do here is not inside PHP nor MySQL books I have. I
need to query the DB to look the max result in a column.
select MAX(fieldname) from table;
You can also insert data in tables with auto_increment fields to account for
yourneed to insert old member ids.
insert into tablename (ID, Name) values ('$OldID', '$Name');
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent:
is
select MAX(column name)
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:
Thanks Natalie Ed. This Works just fine.
What I want to do, is let a person subscribe new affiliates without
having to look up what the last affiliate's number was and show the next
one in the new affiliate form.
César Aracena
IS / MCSE+I
Neuquén, NQN
(0299) 156-356688
(0299) 446-6621
Hello,
On 06/12/2002 02:48 PM, Arturo Barajas wrote:
I don't agree and even think that it is a stupid thing to say because
open source is not about excluding Windows users even if
there are much less open source developers with Windows knowledge
there is no point in making Windows users feel
I find a few bad addresses can slow mail() down, i write to a log file if mail returns
true or to a bad mail file if false, try the bad emails later and then take them off
the list if still bad. you can increase your time out with set_time_limit(), i'd also
send when the server isn't too busy.
This is all i've ever been able to do:
function ck_removeValueFromArray($array, $value) {
$key = array_search($value, $array);
if ($key) {
$array[$key] = ;
rsort($array); // rsort() puts blank values at the end
reset($array);
unset() works for this, how are you using it
exactly? Please post a short test script
that misbehaves for you.
$arr = array('foo','bar');
unset($arr[0]);
print_r($arr); // only $arr[1] = 'bar' exists now
See also: http://www.php.net/unset
http://www.php.net/array_splice
$nums = array ('one', 'two', 'three');
$nums = remove_array_element($nums, 1);
function remove_array_element($array, $index)
{
unset($array[$i]); // Unset selected index
return array_values($array); // Return reindexed array
}
P.S. The empty() function returns true or false depending
1 - 100 of 204 matches
Mail list logo