You could dynamically generate variable names using:
${view_request_}.$i} = $value;
This will generate:
$view_request_1
$view_request_2
...
Vishal.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 1:14 PM
To: [EMAIL PROTECTED]
Subject:
Try something like this. (assuming POSITION is your peoples status
within the organization
$r1=SELECT * FROM $main_tbl WHERE position IN ('A', 'I', 'L') ORDER BY
position;
I would like to only show people who are active within our roster and
within
the database I have identified those
date() expects a UNIX timestamp. MMDDHHMMSS is NOT a UNIX timestamp.
So,
instead of converting the UNIX timestamp to MMDDHHMMSS in your function,
why not leave it a UNIX timestamp? Then you can send it through date()
whenever you want it formatted.
yea...it works now...hmmm... dont know
Kelly Hallman said:
Apr 6 at 2:43pm, Chris de Vidal wrote:
Given that scripts are compiled the first time they're ran, you'll
never* notice the bloat and never lack performance; it's the same as
real PHP code and can be optimized with a caching engine like Zend.
Certainly. However, the
i have something like this:
if(!empty($_SESSION['add']['start_date'])
!empty($_SESSION['add']['end_date'])..)){
and i get the unexpected error:
notice:use of undefined constant: add-assumed 'add' in (filename).
dont quite understand why that is since i used other code that i have
Does anyone know of a way to display the %complete of a file upload
using a form (POST) method?
In other words, I have a form for uploading files to the server. The
files are pretty large, 50,000+ lines and it takes a good 3-4 minutes to
upload. Is there any way to show the progress of this
[snip]
i have something like this:
if(!empty($_SESSION['add']['start_date'])
!empty($_SESSION['add']['end_date'])..)){
and i get the unexpected error:
notice:use of undefined constant: add-assumed 'add' in (filename).
dont quite understand why that is since i used other code that i
Chris W. Parker said:
I could have put a tag in the template like {bio} but that'd mean
maintaining HTML in the PHP code which I wanted to avoid (left the
prettyness to the Front Page developer). Instead, I put something
like this in the template:
{if $level 2}
{bio}
I should have put
John W. Holmes said:
I could have put a tag in the template like {bio} but that'd mean
maintaining HTML in the PHP code which I wanted to avoid (left the
prettyness to the Front Page developer). Instead, I put something
like
this in the template:
{if $level 2}
{bio}
{/if}
Rather than
I posted about this the other day. I was directed to look at megaupload
http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to get the raw post info.
Issues in general:
Whenever this issue comes up people will ask why you need the functionality? I have a
From: Jeff McKeon [EMAIL PROTECTED]
Does anyone know of a way to display the %complete of a file upload
using a form (POST) method?
Look on phpclasses.org. I noticed there was a class mentioned in their last
mailer that did just this.
---John Holmes...
--
PHP General Mailing List
From: Andy B [EMAIL PROTECTED]
i have something like this:
if(!empty($_SESSION['add']['start_date'])
!empty($_SESSION['add']['end_date'])..)){
and i get the unexpected error:
notice:use of undefined constant: add-assumed 'add' in (filename).
Double check your code. In order to
-Original Message-
From: Steve Murphy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 4:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] File upload progress
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
Unfortunately, the web server being used is IIS on a Windows Server, not
Apache
Issues in
I'm sorry to hear that. You could use one of the million ASP meters but then you have
to use IE on winblows which may or may not be an issue for you.
Cross compatibility would also be solved if this was done by PHP.
Maybe someone at PHP will answer our prayers and include a patch for this
Okay seems to makes sense, but when I do the following it doesn't appear to
be working correctly, or I'm viewing my logic incorrectly one:
if ( (int)$PageOptions['Default'] == $PageOptions['Default'] )
{
// display a message if the integer of the default value matches the
default value
}
* Thus wrote Steve Murphy ([EMAIL PROTECTED]):
I'm sorry to hear that. You could use one of the million ASP meters but then you
have to use IE on winblows which may or may not be an issue for you.
Cross compatibility would also be solved if this was done by PHP.
Maybe someone at PHP will
Rob, here's some pointers:
The 'client' creates a URL of the type:
http://myserver.com/index.php?val1=fooval2=bar
Then the 'server' just dumps the values in accordingly.
Now what I suggest is you do this on the client side:
$GetData = base64_encode(serialize($GetData));
if
I have an existing web page that pulls some data and displays it in form
input fields. I would like to add the ability to edit those fields and
submit the changes to the server, but have been unsuccessful. What bit of
code do I need to add to the existing code?
This is the existing code to
El mar, 06-04-2004 a las 07:41, Marek Kilimajer escribió:
Andy B wrote:
how would you assign NULL to a variable if its original value is ? otherwise
leave it with its value...
if($var === '') $var = NULL;
what about: if ($var == '') unset($var);
-William
--
PHP General Mailing List
I think you need a WHERE clause for the UPDATE, otherwise it will update
ALL the records.
e.g. WHERE OwnerName='$result'
Then perhaps a redirect to another page.
I probably need to use if(isset($submit)): and an update statement, but my
attempt just causes the web page to display completely
Curt,
Thats a very valid point. But as it was stated before, the average user does not
understand what is happening. I also feel that we should not have to hack for this
functionality.
When you place a file on a webpage to be downloaded, the meter just happens, and you
don't have to even think
Chip Wiegand wrote:
I have an existing web page that pulls some data and displays it in form
input fields. I would like to add the ability to edit those fields and
submit the changes to the server, but have been unsuccessful. What bit of
code do I need to add to the existing code?
This is the
hey, i think the reason you get no reply is becauase no one knows why it
happens
From: Ben Ramsey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp
Date: Tue, 06 Apr 2004 14:27:08 -0400
I've asked about PHP Access Violation errors before
hey, what kind of news group are you talking about. Like a news script where
people can post news? and would you like it in mysql or text files?
From: Shimi [EMAIL PROTECTED]
Reply-To: Shimi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Not exactly PHP
Date: Tue, 6 Apr 2004
hey,
trying putting at where in your SELECT * FROM $main_tbl so it looks like
this
SELECT * FROM $main_tbl where whatever = somthing
you can also make a limit in SELECT * FROM $main_tbl just like this
SELECT * FROM $main_tbl LIMIT 4
From: Jason T. Davidson [EMAIL PROTECTED]
Reply-To: [EMAIL
There is a java appley which can do uploads, lemme know if u want me to
find it
Curt,
Thats a very valid point. But as it was stated before, the average user
does not understand what is happening. I also feel that we should not
have to hack for this functionality.
When you place a file on a
Well, the reason noone replies I guess, is that noone knows.. I think your
best bets are to echo the steps in the class, and find exactly what causes
it to crash.. Also, you don't need a mailserver on localhost to use mail()..
I use mail() with my ISP's SMTP server, and I'm on XP (same thing work
hi...
i have 2 mysql queries
first one:
//the extra { at the beginning and the extra , at the end of
//each variable should be an '...
insert into $EventsTable values(NULL, '{$_SESSION[add][type]}',
'{$_SESSION[add][start_date]}', '{$_SESSION[add][end_date]}',
'{$_SESSION[add][name]}',
Andy B mailto:[EMAIL PROTECTED]
on Tuesday, April 06, 2004 4:51 PM said:
they both use the same identical format to insert the arrays. there
is an interesting problem though: the first one complains about use
of undefined constant add - assumed 'add' in the second query...the
first one
two things i would recommend before disecting your code.
1. write readable queries.
GOOD:
$sql =
SELECT
name
, age
, height
, etc
FROM user
WHERE
name = '$name'
AND height = '5';
2. always
Chris W. Parker
on Tuesday, April 06, 2004 5:01 PM said:
let me expand both of my points in an attempt to be more verbose.
1. write readable queries.
2. always put single quotes around array keys. $array['key']
here is how i would write your query:
?php
$sql =
insert into
MINE:
$sql =
SELECT
name
, age
, height
, etc
FROM user
WHERE
name = '$name'
AND height = '5';
um...im not doing selects im doing inserts with variable names... i
understand the idea with
Hello Andy,
Wednesday, April 7, 2004, 1:06:52 AM, you wrote:
AB 1. how were those queries unreadable?? and
You're kidding, right?
AB 2. whenever i put '' around the array keys in multi dimensional arrays in a
AB query i get a parse error of trying to use undefined keys or it doesnt
AB expand
Hello Andy,
Wednesday, April 7, 2004, 1:18:06 AM, you wrote:
AB um...im not doing selects im doing inserts with variable names... i
AB understand the idea with select but thats not the dealits an insert...
He was showing you a neatly formatted query, the example applies to
inserts too:
ok query is fixed for the second one now... now to work on the
if(!empty.. tests
i have to check and make sure every one of those arrays isnt empty.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andy B mailto:[EMAIL PROTECTED]
on Tuesday, April 06, 2004 5:18 PM said:
um...im not doing selects im doing inserts with variable names... i
understand the idea with select but thats not the dealits an
insert...
i was hoping that wouldn't cause any confusion, but i guess it did. the
um...im not doing selects im doing inserts with variable names... i
understand the idea with select but thats not the dealits an
insert...
i was hoping that wouldn't cause any confusion, but i guess
it did. the
thing to remember is that a query is a query. you know, parts
is
Hi everyone,
I was just curious if there is another function that
does the same job as stripslashes(htmlentities($textstring)).
I am using this Combined function to echo back Text that is entered in
a Text Field.
Thanks in advance.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To
From: gohaku [EMAIL PROTECTED]
I was just curious if there is another function that
does the same job as stripslashes(htmlentities($textstring)).
Nope. Do it that way.
Or you can turn off magic_quotes_gpc, which is probably the reason you have to run
stripslashes().
---John Holmes...
--
[EMAIL PROTECTED] wrote:
There is a java appley which can do uploads, lemme know if u want me to
find it
Perhaps you are thinking of http://www.radinks.com/upload/ (this is a
shameless plug) :-)
Curt,
Thats a very valid point. But as it was stated before, the average user
does not
Jeff McKeon wrote:
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
Unfortunately, the web server being used is IIS on a Windows Server, not
Apache
Let me point something out here: I was a goof and had an authentication
setting wrong. When I changed it back to LOGIN, it sends e-mail just
fine. So, all is well... sort of. Every 3rd or 4th run of the script
still generates the Access Violation message. However, since it happens
Okay seems to makes sense, but when I do the following it doesn't appear to
be working correctly, or I'm viewing my logic incorrectly one:
if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) {
// display a message if the integer of the default value matches the
default value }
Hello Dave,
Wednesday, April 7, 2004, 2:41:15 AM, you wrote:
MD Okay seems to makes sense, but when I do the following it doesn't appear to
MD be working correctly, or I'm viewing my logic incorrectly one:
MD if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) {
MD // display a
From: Merritt, Dave [EMAIL PROTECTED]
Okay seems to makes sense, but when I do the following it doesn't appear to
be working correctly, or I'm viewing my logic incorrectly one:
if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) {
This works:
MD if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) {
Sorry, forgot to add that also bear in mind that the comparison
operator == will automatically cast your string to an integer for the
comparison. The following will take a user string ($str) and check if
it is an integer or not.
never worked for me plus what is this drag and drop system ? i get an
exception
Jeff McKeon wrote:
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
From: Hawkes, Richard [EMAIL PROTECTED]
Just spent far too long trying to figure out how to do this, so I thought I'd
pass it on to you great guys, in case you need it for the future.
I used PHP to create multiple form rows, each one numbered:
?
for ($i =1; $i = 20; $i++) {
[EMAIL PROTECTED] wrote:
never worked for me plus what is this drag and drop system ? i get an
exception
Let's take this discussion to the mega upload message board (at
http://www.sourceforge.net/projects/megaupload/) . I am sure others
would appreciate that.
thanx.
Jeff McKeon wrote:
He was showing you a neatly formatted query, the example applies to
inserts too:
$sql =
INSERT INTO
tablename
(
field1,
field2,
field3
)
VALUES
(
'$blah',
$here',
AB 1. how were those queries unreadable?? and
You're kidding, right?
sorry...my bad... never had any writing readable code help
anywhere...guess if i do it like c/c++ then it would work better
AB 2. whenever i put '' around the array keys in multi dimensional arrays
in a
AB query i get a
- Original Message -
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
I recently began to use megaupload, it relies on perl cgi to measure
i was hoping that wouldn't cause any confusion, but i guess it did. the
thing to remember is that a query is a query. you know, parts is parts.
oops stress and the fact that im sort of new at this stuff mixed me up...
$query=insert into table values(
'{$array['index1']['index2']}',
hi...
is it better to give the mysql query string to a variable instead of directly doing it
with mysql_query?
i.e.
$query=select * from table;//is this a better way?
$query=mysql_query(select * from table);//or is this way
//better?
mysql_query(select * from table);//not a good idea i dont
hi,
I want to send an SMS(to mobile phone etc) based on a database trigger or on
completion of an php page. the site runs on linux.
how to do this. How do i send the mobile no . what is the language, protocol,
syntax and platform.
if anyone knows please inform. i am unable to
understand
Hello all,
When I use the PHP mail function to send emails, with a header of
From:[EMAIL PROTECTED]; bounced and otherwise undeliverable messages come back
to the user www, not the user I indicated the mail was from. Is this a
PHP or MTA issue? Is there something I can do about it?
TIA,
Daryl
* Thus wrote Daryl Meese ([EMAIL PROTECTED]):
Hello all,
When I use the PHP mail function to send emails, with a header of
From:[EMAIL PROTECTED]; bounced and otherwise undeliverable messages come back
to the user www, not the user I indicated the mail was from. Is this a
PHP or MTA issue?
101 - 158 of 158 matches
Mail list logo