Stupid as I was, I did not do what I should have done :) In the origin the
array was created from a MySQL database. I did not sort it correctly from
there because I did not have the knowledge about the GROUP BY command, so I
tried to solve it via PHP. Now I have everything sorted and alright just
Hi, do you mean ADODB? PEAR::DB? or DBX ?
Adwin Wijaya :
Hi,
Is there any mature DAO class for PHP (free) ?
thx
--
-- ShenKong (shenkong(at)php.net)
-- http://www.openphp.cn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Richard Lynch [EMAIL PROTECTED] wrote:
I made the correction , using $_GET now. Values
are
printing out, aside from the select lists (arrays)
which print out as array.
Yes.
An array will print as Array
You'll need to dig into the Array for what you need,
or implode it, or
Hi,
Is there any mature DAO class for PHP (free) ?
thx
--
===
Best Regards
Adwin Wijaya
www.kuya-kuya.net
www.e-rhema.net
===
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, mybe you mean PDO:
http://pecl.php.net/package/PDO
http://www.zend.com/expert_qa/qas.php?id=93single=1
http://www.zend.com/expert_qa/qas.php?id=98single=1
Adwin Wijaya :
Shen Kong wrote:
Hi, do you mean ADODB? PEAR::DB? or DBX ?
-- more advance than that i think. It is a class that will be
Because you prefer it?
Seriously, you should choose what you are most happy with. Both work
fine, although, PHP rocks!
On 11 Dec 2004, at 10:11, Peter Lauri wrote:
Best groupmember,
Why should I choose PHP instead of JSP/Servlets when it comes to
develop a
high-traffic site. Assume that the
Hi all,
Can PHP handle with CIM's (Clickable Image Maps) to get data from a html
page (instead of using checkboxes...)?
I searched the online doc for it but no matches.
Thanks in advance!
Kurt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm hoping that this question will be more succinct.
I am trying to repopulate a search form with a user's
chosen paramters. I am running into a problem with
multiple select lists
First , this is the element when the form is first
presented to the user:
select name=Ind[] size=8
--- [EMAIL PROTECTED] wrote:
you (just) need to mark the previously chosen items
as selected in
the repopulated list. the highlighting part is a
basic html/form
issue. i.e., if you have questions on this you
should look at how, on
a simple (html-only) form, an item on a list is
marked
Adwin Wijaya wrote:
Hi,
Is there any mature DAO class for PHP (free) ?
http://pear.php.net/DB_DataObject
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greg Donald wrote:
On Fri, 10 Dec 2004 22:00:43 +, KJ [EMAIL PROTECTED] wrote:
5. Joe Hacker has studied the script coz he's a tart that wants to piss
people off and he has found a vunerability.
6. Joe Hacker uses the vunerability to change your account passwd. He
then logs in as you and
On Saturday 11 December 2004 20:46, Stuart Felenstein wrote:
--- [EMAIL PROTECTED] wrote:
you (just) need to mark the previously chosen items
as selected in
the repopulated list. the highlighting part is a
basic html/form
issue. i.e., if you have questions on this you
should look at
Richard,
well a much simpler solution than my old one:
$this-uri =
explode('/',basename($_SERVER['SCRIPT_NAME']).$_SERVER['PATH_INFO']);
Many thanks for your help,
Bruno B B Magalhaes
On Dec 10, 2004, at 11:57 PM, Richard Lynch wrote:
$_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_FILENAME'] or ...
Carl Michael Skog wrote:
If I save the response of this command with lynx (lynx -dump
http://www.formatemp.com/catalog/paynova-reply.php; somefile),
I will get three newlines.
Aha! I knew it. :) See:
http://marc.theaimsgroup.com/?l=php-generalm=110272197009025w=2
Lynx adds the newlines.
Hi All,
I need to send some vars to a cgi script.
The script url is like this
http://www.example.com/cgi-bin/script.cgi?var1=my_first_php_var;var2=my_seco
nd_php_var and so on.
How do I send / call this script from inside my php script ?
Any help I appreciated
Thank you in advance
Dave C
On Dec 9, 2004, at 10:02 PM, Song Ken Vern wrote:
Hi,
Tried searching for what this $$ operator means.
But can't get the right results by using $$ as search string in php
manual.
$temp = $$temp2;
Is this an array assignment?
No, its a variable varible:
Travis Conway wrote:
Did he really ask that question on a PHP board?
That is like walking into a Coke factory, going to the manager and
asking pepsi or coke?
Good a place as any to ask. Sure, the opinions one receives here may be
a bit biased towards php, but most of the users on this list
my simple way..
while()
{
$i += 1;
$alt = ($i % 2) ? 'alt1' : 'alt2';
}
then just use $alt in your td class..
- Original Message -
From: Graham Cossey [EMAIL PROTECTED]
To: Brad Ciszewski [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 8:33 AM
On Friday 10 December 2004 12:02, Song Ken Vern wrote:
Tried searching for what this $$ operator means.
But can't get the right results by using $$ as search string in php manual.
$temp = $$temp2;
Search for variable variables
Is this an array assignment?
No, but in most cases where you
how about r? :) (or x)
Dave Carrera wrote:
Thanks John,
I get fopen expects second param when I call it.
What would this be ? r w x or something else ?
Thanks for the help
Dave Carrera
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 December 2004 15:26
To: Dave
Can someone give me a distinction between the two and when to use / not use
them?
I want to thank everyone who replied about myFor loop question. All the
answers were VERY helpful! Thanks very much.
~ R. Van Tassel
On Sat, 2004-12-11 at 13:03 -0500, R. Van Tassel wrote:
Can someone give me a distinction between the two and when to use / not use
them?
I want to thank everyone who replied about myFor loop question. All the
answers were VERY helpful! Thanks very much.
You might want to pick up a
That's a variable variable name.
http://us2.php.net/manual/en/language.variables.variable.php
So
$temp3 = 'valueoftemp3';
$temp2 = 'temp3';
$temp = $$temp2;
$$temp2 === $temp3;
Song Ken Vern wrote:
Hi,
Tried searching for what this $$ operator means.
But can't get the right results by using $$
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
titleOur List of Jokes/title
meta http-equiv=content-type
content=text/html; charset=iso-8859-1 /
/head
body
?php
// Connect to the database server
i apologize if its against the rules to post mysql questions here, though im
using php to query the db
so...
i have a table with three integers.
[table post]
postuserid | replyuserid | parentid
--
i do a left join on table user to get the username that postuserid
I am trying to run a shell command with backticks. However, I get a parse
error. Is it because I have an array variable in there?
$result = `adduser -l=$dist_id -p=$user['password'] --f=$user['name_first']
$user['name_last']`;
Do I need to assign the value to a regular variable before I put
well $user['password'] has no double quotes around it.
- Original Message -
From: Jonathan Duncan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 8:09 PM
Subject: [PHP] php variables in a backtick command
I am trying to run a shell command with backticks.
Assuming I understand you correctly, you want to connect to your
office computer, which is running apache, from home.
The fact that you are using win98 isn't particularly relevent,
provided you can connect to the internet with it.
Are you talking about connecting to your office computer through
jpb wrote:
I am using the FTP_PUT command in conjunction with a form:
form action=upload.php method=post enctype=multipart/form-data
input type=file name=imagefile
input type=submit value=Submit
upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id,
Sebastian wrote:
i apologize if its against the rules to post mysql questions here, though im
using php to query the db
so...
i have a table with three integers.
[table post]
postuserid | replyuserid | parentid
--
i do a left join on table user to get the username
Hello,
Adwin Wijaya wrote:
Is there any mature DAO class for PHP (free) ?
You may want to check Metastorage. It is not really a DAO class but
rather a DAO class generator. It tends to generate code that is much
more efficient than DAO base classes as the generated code only includes
the
this is a brain buster, at least for me.
i have a while loop (results from mysql) which display news articles. i want
to include() a file if there hasn't been a news article posted today
meaning after midnight 12am to 12pm midnight... but if there are articles
the articles would be echo'd before
Ah, that is a good idea, putting the command in a variable and then
executing the variable. I have doen that before but did not think of it
now. Too many things going on. Thanks!
Jonathan
Rory Browne [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm not sure about variable
The quotes are only for the shell command which does not use quotes around
password. Thanks for the feedback.
Jonathan
Sebastian [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
well $user['password'] has no double quotes around it.
- Original Message -
From: Jonathan
On Sun, 12 Dec 2004 07:03, Mike Francis wrote:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
titleOur List of Jokes/title
meta http-equiv=content-type
content=text/html;
Is there a way in the current code below to make my $go_to_address go to a
webpage in a new link -- instead of embedded in an iframe?
In others words, can Header(Location: open in a new window?
?
if (!eregi(modules.php, $_SERVER['PHP_SELF'])) {
die (You can't access this file
I am using the FTP_PUT command in conjunction with a form:
form action=upload.php method=post enctype=multipart/form-data
input type=file name=imagefile
input type=submit value=Submit
upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id, $destination_file,
Shen Kong wrote:
Hi, do you mean ADODB? PEAR::DB? or DBX ?
-- more advance than that i think. It is a class that will be created
to access database as object like the one in Java.
--
===
Best Regards
Adwin Wijaya
www.kuya-kuya.net
www.e-rhema.net
===
--
Best groupmember,
Why should I choose PHP instead of JSP/Servlets when it comes to develop a
high-traffic site. Assume that the infrastructure for both are set up. It
only comes to efficiency (both coding and running)? What are your
experience?
--
- Best Of Times
/Peter Lauri
--
PHP General
--- Stuart Felenstein [EMAIL PROTECTED] wrote:
I am ending this thread.
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 10 Dec 2004 18:19:35 -0600, Brad Ciszewski [EMAIL PROTECTED] wrote:
i need some assistance making my table (rows) change color for every other
data. here is what i have so far, but i get a unexpected T_STRING error.
this error's line is: if($thisRow mode 2 == 0){
+=+=+ SCRIPT BELOW
Peter Lauri wrote:
Best groupmember,
Why should I choose PHP instead of JSP/Servlets when it comes to develop a
high-traffic site. Assume that the infrastructure for both are set up. It
only comes to efficiency (both coding and running)? What are your
experience?
As a sun certified java
Thanks for the answer !
The URL of the file is http://www.formatemp.com/catalog/paynova-reply.php
and the file is definitely empty.
It was created by the touch(UNIX command):
-rw-r--r-- 42 foo foo 0 Dec 10 18:49 paynova-reply.php
The server is configured as follows:
Apache/1.3.33
Did he really ask that question on a PHP board?
That is like walking into a Coke factory, going to the manager and asking
pepsi or coke?
- Original Message -
From: Raditha Dissanayake [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 7:11 AM
Subject: Re: [PHP]
From: Dave Carrera [EMAIL PROTECTED]
I need to send some vars to a cgi script.
The script url is like this
http://www.example.com/cgi-bin/script.cgi?var1=my_first_php_var;var2=my_seco
nd_php_var and so on.
How do I send / call this script from inside my php script ?
$file =
Hi,
Tried searching for what this $$ operator means.
But can't get the right results by using $$ as search string in php manual.
$temp = $$temp2;
Is this an array assignment?
Thanx.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks John,
I get fopen expects second param when I call it.
What would this be ? r w x or something else ?
Thanks for the help
Dave Carrera
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 December 2004 15:26
To: Dave Carrera; [EMAIL PROTECTED]
Subject: Re:
variables variable?
http://us2.php.net/manual/en/language.variables.variable.php
- Original Message -
From: Song Ken Vern [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 11:02 PM
Subject: [PHP] assignment
Hi,
Tried searching for what this $$ operator means.
Travis Conway wrote:
Did he really ask that question on a PHP board?
I have met factory managers (though not at the comanies you mention )
who have admitted that their competitors may have the edge :-)
But seriously whether PHP is better or JSP is better is a religious
question. However on the
Hi,
I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box.
I have created a new database 'ijdb' with a single table 'joke' and have
entered data into two of the three fields in the table.
I can access the database / tables / data from a command prompt.
However, when I try to connect
So I tried it that way and it worked, that is annoying though, having to add
extra lines to the code and assign the contents of one variable to another.
Any way around this?
Jonathan
Jonathan Duncan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying to run a shell command
I'm not sure about variable expansion with backticks(I don't use
backticks, if necessary I use shell_exec() instead). I'm just after
installing a fresh SuSE 9.1, and php is giving me a segfault at the
minute, with that particular code, but if you were using double quotes
you could:
$command =
Hi everyone!
Can someone help me with this question?
I created a photo upload utility with individual galleries that images can
be uploaded into. In the MySQL database, there are multiple names of
galleries, some are the same. I want to have a select menu to show just the
unique names of the
It would be nice if you submit code that generates the error.
/Peter
Mike Francis [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Hi,
I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box.
I have created a new database 'ijdb' with a single table 'joke' and have
entered
* Steve Marquez [EMAIL PROTECTED]:
I created a photo upload utility with individual galleries that images can
be uploaded into. In the MySQL database, there are multiple names of
galleries, some are the same. I want to have a select menu to show just the
unique names of the galleries.
I have
55 matches
Mail list logo