Hello,
I'm updating a table with following SQL statement
$sql = "INSERT INTO x_ikaluokat (ryhma, ikaluokka)
VALUES ('$ryhma','$ikaluokka')";
What would be the best way to test that similar rows doesn't get created to
the table? I can't make both columns unique.
Thanks
-Will
--
PHP Gener
William Stokes wrote:
Hello,
var_dump($POST) returns now always NULL. Before it returned the POST
variables and their values like it should, right? Is there something that
the operator could have done in the server that causes this?
try
var_dump($_POST);
The superglobals (except for 'global
oooppps :)
sorry about that one...
"Albert Padley" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
>
> On Apr 13, 2006, at 12:16 AM, William Stokes wrote:
>
>> Hello,
>> var_dump($POST) returns now always NULL.
>
> Try var_dump($_POST);
>
> Note the underline between $ and P.
>
> Al Pa
On Apr 13, 2006, at 12:16 AM, William Stokes wrote:
Hello,
var_dump($POST) returns now always NULL.
Try var_dump($_POST);
Note the underline between $ and P.
Al Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
var_dump($POST) returns now always NULL. Before it returned the POST
variables and their values like it should, right? Is there something that
the operator could have done in the server that causes this?
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
Jochem Maas wrote:
a. php will actually implement static late binding
b. Zend Framework's 'DataObject' class will make use of said late
binding to do cool things like Person::findAll( $myFilter ) with
out having to actually implement a findAll method in the Person
class
I have read indications
On Wed, 2006-04-12 at 19:23, Jochem Maas wrote:
> Robert Cummings wrote:
>
> I must say that I have questions regarding the 'real' reasons behind
The most plausible real reason is to give Zend's name to a framework
that will possibly rally interest behind a single framework rather than
the multitu
Robert Cummings wrote:
On Wed, 2006-04-12 at 16:21, Jochem Maas wrote:
no question here but for anyone wanting a totally different take
on php frameworks and some killer code examples
take a look at this:
http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
Rasmu
On Wed, 2006-04-12 at 16:21, Jochem Maas wrote:
> no question here but for anyone wanting a totally different take
> on php frameworks and some killer code examples
>
> take a look at this:
> http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
Rasmus is just suggestin
no question here but for anyone wanting a totally different take
on php frameworks and some killer code examples
take a look at this:
http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
in the immortal words of Quake3Arena: 'Impressive' :-)
--
PHP General Mailing Li
Richard Lynch wrote:
Can anybody recommend a good C debugger fitting the following criteria:
FreeBSD 5.3
command-line based (no X)
so far: gdb
intuitive enough for a guy who hasn't touched C in 20 years to not fail
plays well with PHP source C code/macros
er? (coming from a guy that's neve
Richard Lynch wrote:
On Wed, April 12, 2006 11:28 am, Jochem Maas wrote:
Richard Lynch wrote:
Can anybody expand on the meaning and correct usage of:
hi Richard,
been following your ordeal from a far, sorry to say I have
nothing useful to add regarding the curl problem ... but I was
won
Maybe this was already asked, but are you running 64bit Windows Server
2003 on that box? I've heard there's some wonkiness getting PHP and the
various extensions to work on 64bit Windows.
> c:\windows\system32\logfiles\W3SVC848989038\
> Don't ask me why. :-)
All IIS logfiles -- be they HTTP, FT
Can anybody recommend a good C debugger fitting the following criteria:
FreeBSD 5.3
command-line based (no X)
intuitive enough for a guy who hasn't touched C in 20 years to not fail
plays well with PHP source C code/macros
installable and runnable by non-root user
TIA!
--
Like Music?
http://l-i
Ussually, the browsers send a header with information about the language
preferences of the user.
This header is HTTP_ACCEPT_LANGUAGE.
You can retrieve its value in PHP through the array $_SERVER:
$_SERVER['HTTP_ACCEPT_LANGUAGE']
Here you can find about the format of this header:
http://www.w3.o
Hi,
I've been working on PHP using windows IIS as web server but now that I
moved to Linux I'll use APACHE 2.x
I read about and every where I see that apache improves PHP
I would like to now specifics cases
Can anyone help me with this, please? Anybody got a clue to lend?
Thanks,
Norman Huaseb
On Wed, April 12, 2006 11:28 am, Jochem Maas wrote:
> Richard Lynch wrote:
>> Can anybody expand on the meaning and correct usage of:
>
> hi Richard,
>
> been following your ordeal from a far, sorry to say I have
> nothing useful to add regarding the curl problem ... but I was
> wondering if a
On 4/12/06, Chris Westbrook <[EMAIL PROTECTED]> wrote:
> I have a problem. I'm trying to get a Google search results page via snoopy
> and then display the links of the results it returns in an application. I
> know about the fetchlinks function in snoopy, but I'm having trouble getting
> the tex
Richard Lynch wrote:
Can anybody expand on the meaning and correct usage of:
hi Richard,
been following your ordeal from a far, sorry to say I have
nothing useful to add regarding the curl problem ... but I was
wondering if a fopen() or file_get_contents() in conjunction
with allow_url_fopen w
William Stokes wrote:
Hello,
How can I hide error message when user enters to POST action form for first
time? I have a form for collecting and saving user data. In the code below
you can see that there are text messages for user info stored in $teksti
variables. At the end the $teksti is pa
Hello,
How can I hide error message when user enters to POST action form for first
time? I have a form for collecting and saving user data. In the code below
you can see that there are text messages for user info stored in $teksti
variables. At the end the $teksti is passed to function that di
Schalk wrote:
Greetings All,
Is the code below the correct way to 'build' the message for plain text
email?
$message = "Message From: ".$firstName. " " .$lastName."
First Name: ".$firstName."
Last Name: ".$lastName."
Address: ".$address."
Home phone: ".$homePhone."
Best time to contact: ".$b
> On 4/11/06, Bing Du <[EMAIL PROTECTED]> wrote:
>> => foreach ($sponsor_id as $sponsor => $arr)
>> echo "$sponsor:";
>> foreach ($arr[$sponsor] as $project) {
>> echo "$project";
>> }
>> =>
>
> It looks like you're building your array just fine.
I use
$message ="Message From: $firstname $lastname
First Name: $firstname
Last Name: $lastname
.
";
Wolf
Schalk wrote:
> Greetings All,
>
> Is the code below the correct way to 'build' the message for plain text
> email?
>
> $message = "Message From: ".$firstName. " " .$lastName."
> Firs
[snip]
Is the code below the correct way to 'build' the message for plain text
email?
$message = "Message From: ".$firstName. " " .$lastName."
First Name: ".$firstName."
Last Name: ".$lastName."
Address: ".$address."
Home phone: ".$homePhone."
Best time to contact: ".$bestTime."
Email: ".$email."
Greetings All,
Is the code below the correct way to 'build' the message for plain text
email?
$message = "Message From: ".$firstName. " " .$lastName."
First Name: ".$firstName."
Last Name: ".$lastName."
Address: ".$address."
Home phone: ".$homePhone."
Best time to contact: ".$bestTime."
Email:
This worked wonderfully--thank you very much Jochem!
On 4/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> Ace McKool wrote:
> > Hi,
> >
> > This is the end result I'm trying to get:
> >
> > $z1 = array_merge($z[0], $z[1], $z[2]);
>
> $yourArrays = array($z[0], $z[1], $z[2]);
> $z1 = call_user_fu
Hi
if you just want to sort of concatenate your arrays then why not just loop
through the whole thing in order to get the new single array. Need more info
for further consideration. Hope this helps!
for ($i=0;$ihttp://www.purewebsolution.co.uk
PHP, MYSQL, Web Design & Web Services
"Ace McKoo
Hi,
This is the end result I'm trying to get:
$z1 = array_merge($z[0], $z[1], $z[2]);
But what if I don't know how many elements are in $z? I tried this (but it
breaks if there are more than 2 elements in $z):
for ($i=0; $i
On 4/11/06, Bing Du <[EMAIL PROTECTED]> wrote:
> ==
> foreach ($sponsor_id as $sponsor => $arr)
> echo "$sponsor:";
> foreach ($arr[$sponsor] as $project) {
> echo "$project";
> }
> ==
>
It looks like you're building your array just fine. Here t
Hello Richard,
Check the "php.ini" setting in the top portion to see where php.ini
MUST BE for it to be read.
It is telling me:
Configuration File (php.ini) Path C:\WINDOWS
Step #2:
Find your php.ini file, and MOVE it to where phpinfo() wants it to be.
I have my php.ini at C:\WINDO
31 matches
Mail list logo