[PHP] can someone explain this query to me

2005-12-20 Thread Ross
$query = delete from meetings where id IN (.implode(,, $ids).); Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN do?? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can someone explain this query to me

2005-12-20 Thread David Grant
Ross, Ross wrote: $query = delete from meetings where id IN (.implode(,, $ids).); Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN do?? It's the equivalent of WHERE id = 1 OR id = 2 OR id = 3 OR id = 4 OR id = 5. Cheers, David -- David Grant

RE: [PHP] can someone explain this query to me

2005-12-20 Thread Dan Parry
] can someone explain this query to me $query = delete from meetings where id IN (.implode(,, $ids).); Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN do?? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can someone explain this?

2004-06-09 Thread Ford, Mike [LSS]
On 08 June 2004 19:00, René Fournier wrote: OK, that makes sense. But here's the problem: I receive binary data from SuperSPARC (big-endian), which I need to unpack according to certain documented type definitions. For example, let's say that $msg has the value 3961595508 and is packed as an

[PHP] Can someone explain this?

2004-06-08 Thread René Fournier
$dec = -71788; echo $dec.\n; $hex = dechex($dec).\n; $dec2 = hexdec($hex).\n; echo $dec2.\n; -= PRODUCES: =- -71788 3961595508 Is this something about signed versus unsigned integers? What I really would like to do is convert that negative number (-71788), which I suppose is unsigned

Re: [PHP] Can someone explain this?

2004-06-08 Thread Adam Voigt
Forgive me if my math is askew, but doesn't the negative imply the number is signed? If I remember from my C++ days, a declaration of: unsigned int blah; Meant you could not store negative numbers in that variable. Hence, negatives would be signed. No? On Tue, 2004-06-08 at 12:52, René

Re: [PHP] Can someone explain this?

2004-06-08 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): -= PRODUCES: =- -71788 3961595508 Is this something about signed versus unsigned integers? What I really would like to do is convert that negative number (-71788), which I suppose is unsigned to a signed integer (3961595508)

Re: [PHP] Can someone explain this?

2004-06-08 Thread Michal Migurski
Forgive me if my math is askew, but doesn't the negative imply the number is signed? If I remember from my C++ days, a declaration of: unsigned int blah; Meant you could not store negative numbers in that variable. Hence, negatives would be signed. No? Yes, but once it become a hex string

Re: [PHP] Can someone explain this?

2004-06-08 Thread René Fournier
OK, that makes sense. But here's the problem: I receive binary data from SuperSPARC (big-endian), which I need to unpack according to certain documented type definitions. For example, let's say that $msg has the value 3961595508 and is packed as an unsigned long integer (on the remote SPARC).

Re: [PHP] Can someone explain this?

2004-06-08 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): Now, thanks to your suggestions, I can convert that number back to an unsigned integer—or at least make it positive. But I shouldn't have to convert it, should I? Not necessarily, it mostly due to the limitation that php doesn't have unsigned

Re: [PHP] Can someone explain this?

2004-06-08 Thread René Fournier
Thanks. The fact that this behaviour is a bug somehow makes me feel better. At least I'm not crazyor, not as crazy as I thought. ...Rene On Tuesday, June 8, 2004, at 12:57 PM, Curt Zirzow wrote: * Thus wrote Ren Fournier ([EMAIL PROTECTED]): Now, thanks to your suggestions, I can convert that

[PHP] can someone explain...

2003-09-01 Thread jsWalter
this difference bewteen A and B below? A)$a = new className(true, 6); B)$a = new className(true, 6); /* missing on the NEW */ thanks walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can someone explain this? include problem.....?

2003-03-09 Thread Beauford.2002
Hi, I have a php script which does some stuff and at the end of the file I have it include a file which has a form in it. The problem I am having is that it is missing code. If you go down to the second input - it has a value=0 field - this does not show up when I view the source from my

Re: [PHP] Can someone explain this? include problem.....?

2003-03-09 Thread Chris Hayes
At 22:15 9-3-2003, you wrote: Hi, I have a php script which does some stuff and at the end of the file I have it include a file which has a form in it. The problem I am having is that it is missing code. If you go down to the second input - it has a value=0 field - this does not show up when I

Re: [PHP] Can someone explain this? include problem.....?

2003-03-09 Thread Beauford.2002
=5 The value= has been stripped from the code Thanks - Original Message - From: Chris Hayes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 09, 2003 4:32 PM Subject: Re: [PHP] Can someone explain this? include problem.? At 22:15 9-3-2003, you wrote: Hi, I have

Re: [PHP] Can someone explain this? include problem.....?

2003-03-09 Thread Leo Spalteholz
On March 9, 2003 04:30 pm, Beauford.2002 wrote: Sorry, the line I was actually referring to is the one below. I forgot the hidden one was even there and serves no purpose and does not resolve the problem by removing it. This works: input type=text name=player SIZE=10 value=? echo

[PHP] Can someone explain this please...

2002-08-15 Thread Gandalf
Hello! I am doing this $newpath = ./uploads/newdir/; if (!is_dir($newpath)) mkdir($newpath, 0666); $decperms = fileperms($newpath); $octalperms = sprintf(%o,$decperms); $perms=(substr($octalperms,2)); echo $perms; if ($perms != 777) { rmdir ($newpath); } This will not delete the dir created

[PHP] Can someone explain this????

2001-09-21 Thread Dallas K.
try this when u get a sec. its weird... In Microsoft Word, start with a blank page and type the letters NYC in all caps. Highlight the letters and change to the largest font size, 72 points. Now change the font itself to Webdings . that's not all. Now change the font

Re: [PHP] Can someone explain this????

2001-09-21 Thread Chris Hobbs
Dallas K. wrote: try this when u get a sec. You want to see something really weird? Try using 'MORON' instead of 'NYC'. It doesn't actually mean anything, but at least you'll have a signature you can start using if you're going to keep posting this tripe... My $0.02. --