On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
>foreach ($state_list as $key => $value) {
> echo " if($key == $choice) echo " selected"; // now it's
> sticky
> ;-)
> echo "> $value\n";
>}
Just another quick ?..
where is $choice coming
On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
> When you fail to indicate which item in a select list is "selected"
> most
> browsers will default to showing the first entry (effectively
> unsticking
> your choice).
>
> Good luck
ahhh! I was wondering where the "selected" came fro :)
T
The selection will stick until you do a form submit. The most common
practice in PHP is to update the database with the value from the form or at
least save it in a session. After the update you can redisplay your form
after fetching the DB contents or getting the selection from the session
into
On Sat, Jul 5, 2008 at 1:36 PM, Larry Garfield <[EMAIL PROTECTED]> wrote:
> Greetings, all.
>
> I am trying to figure out a way to implement the following logic, but I am not
> sure if it is possible to do so without a lot of additional side work:
>
> I have a class, A, and another class B that ext
Bastien Koert wrote:
On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert <[EMAIL PROTECTED]> wrote:
On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson <[EMAIL PROTECTED]>
wrote:
$conn=odbc_connect("Database","",""); works
$a = "abcd"; (this value exists in db)
$stat = "Select * FROM " . '"Table Nam
Pulni4kiya wrote:
Well reimplementing autoloading doesn't seem such a bad idea.
With the integrated autoload ...there is one very stupid way of doing
what you want. Something like this (I suppose you know which class is
the parent of the one that is 'missing'):
eval("class $class_name extends
Well reimplementing autoloading doesn't seem such a bad idea.
With the integrated autoload ...there is one very stupid way of doing what
you want. Something like this (I suppose you know which class is the parent
of the one that is 'missing'):
eval("class $class_name extends THE_PARENT {}");
Yo
On Saturday 05 July 2008 2:25:20 pm Pulni4kiya wrote:
> First of all, I don't think using autoload is recommended.
Why not? I know there is a performance hit for the lookup time, but for the
system I'm working on I have already solved that issue with selective
pre-caching.
> If you really want
First of all, I don't think using autoload is recommended.
If you really want to do it that way, you could check if the file which
autoload will try to include exists and if it does, include it and create
your object.
Actually to make the script more safe, after including the file you should
On Sat, Jul 5, 2008 at 6:01 AM, Waynn Lue <[EMAIL PROTECTED]> wrote:
> I have a system where a user clicks on a button which causes rows to
> be inserted in to the database. I'd also like to run some lengthier
> post-processing on those rows, but don't want to put it in the
> critical path of the
Richard Heyes wrote:
Also:
exec('sleep 5 >& /dev/null &');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
I can't always remember because I think some things that are in c shell
but aren't available in bourne have been incorpoated into bash.
Richard Heyes wrote:
Also:
exec('sleep 5 >& /dev/null &');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
My bad. I was trying to shorten your command. >& redirects stdout and
stderr, unfortunately in c shell though.
-Shawn
--
PHP General
At 11:31 AM -0400 7/5/08, Michael S. Dunsavage wrote:
What I eventually did was:
-snip-
You might also consider adding a javascript routine to do the same
thing. Why? Because it's a bit quicker doesn't hit the server until
all the fields are filled.
Like this:
http://webbytedd.com/c/form-
Greetings, all.
I am trying to figure out a way to implement the following logic, but I am not
sure if it is possible to do so without a lot of additional side work:
I have a class, A, and another class B that extends A. They live in separate
files. The logic I need to implement is as follows
Also:
exec('sleep 5 >& /dev/null &');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Heyes wrote:
> and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
/dev/null 2>/dev/null &');
echo 'Script ended';
?>
This tiny sample should end immediately, and the s
Hi,
I'd like to know if there are any tutorials about SAP and PHP. I'm moving
to a new company and there is the need to provide some sort of access to
internet/intranet to resources available in SAP.
Since I work with PHP I am wondering what kind of support, tips, info I can
get in order to deci
On Sat, 2008-07-05 at 21:30 +1000, Peter Jackson wrote:
> Michael S. Dunsavage wrote:
> > I have a form I want to keep sticky, but I can't figure out how. I got
> > all the 's to be sticky
> >
> > The select script
> >
> >
> > > echo 'State';
> > echo '';
> > foreach ($state_list as $ke
On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert <[EMAIL PROTECTED]> wrote:
>
>
> On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson <[EMAIL PROTECTED]>
> wrote:
>
>> Hi list,
>>
>> I am trying to get info out of a MS Access 2000 db. So far I have
>> managed to do some of it but current part has me stu
Alain Roger wrote:
Hi,
I need to create an e-shop in PHP.
this is for me the first time that i need to do that and i think the way how
to approach such topic is different that creating a simple corporate web
site.
STFW: php: open source e-commerce
http://www.google.com/search?q=php%3A+open+
On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson <[EMAIL PROTECTED]>
wrote:
> Hi list,
>
> I am trying to get info out of a MS Access 2000 db. So far I have managed
> to do some of it but current part has me stumped.
>
> Set up
> Machine 1 - Debian 4, Apache, PHP5 unixodbc, mdbtools
> Machine 2 - W
On Sat, Jul 5, 2008 at 6:26 AM, Alain Roger <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to create an e-shop in PHP.
> this is for me the first time that i need to do that and i think the way
> how
> to approach such topic is different that creating a simple corporate web
> site.
>
> Here are the s
It flance wrote:
> Some months ago i worked with XML. And i remember that i was able to
> create xml files quite easily. Now i don`t have the book i used by the
> time. I made many searches in google and i don't find something
> interesting. So i'm wondering if somebody can give a good link with
>
David Robley wrote:
x0ml wrote:
For some reason this first post didn't "post" to this newsgroup...
"x0ml" <[EMAIL PROTECTED]> wrote in message news:...
I've installed PHP version 5.2.6 but phpinfo() and php -v both report
back the old version 5.0.2.
You did restart the server after making
Michael S. Dunsavage wrote:
I have a form I want to keep sticky, but I can't figure out how. I got
all the 's to be sticky
The select script
State';
echo '';
foreach ($state_list as $key => $value) {
echo " $value\n";
}
echo '';
echo '';
?>
If I'm read
Hi list,
I am trying to get info out of a MS Access 2000 db. So far I have
managed to do some of it but current part has me stumped.
Set up
Machine 1 - Debian 4, Apache, PHP5 unixodbc, mdbtools
Machine 2 - WindowsXP, MS-Access
Database is in a windows share that is smfs mounted on the linux
> and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
/dev/null 2>/dev/null &');
echo 'Script ended';
?>
This tiny sample should end immediately, and the sleep command should
ru
Hi,
I need to create an e-shop in PHP.
this is for me the first time that i need to do that and i think the way how
to approach such topic is different that creating a simple corporate web
site.
Here are the standard features that i need to implement:
- home page including latest "article/news",
Using an empty delimeter with explode leads to a php warning. At least
in the php versions i worked with. Still there is a similar function:
Odd. Don't know where that idea came from then.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/
I have a system where a user clicks on a button which causes rows to
be inserted in to the database. I'd also like to run some lengthier
post-processing on those rows, but don't want to put it in the
critical path of the rows being inserted and returning to the user.
What's the best way to either
Is there a way to output the results with a space between each
character?
$shuffled = str_shuffle($str);
From memory:
$shuffled = implode(' ', explode('', $shuffled));
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
31 matches
Mail list logo