Ask a Question related to PHP Development, Design and Development.
-
Mike At Spy #1
Bizarre SQl, if issue....
Hey, I've got a weird issue. I have some code, an MySQL statement, that
returns an empty set, like this:
$person = mysql_query("Some Statement Here");
So, then I have an if/else statement:
if (!$person || $person == 0 || $person == '' || $person == '0') { $result =
1; }
else { $result = 4; }
If the SQL statement returns an empty set, shouldn't $result be equal to 1?
Instead, I'm getting $result = 4.
Hence all of the 'OR' conditions. I would have have thought !$person would
be enough.
Thanks for any input! :)
-Mike
Mike At Spy Guest
-
Fonts are there, then they're not. Bizarre.
I am using InDesign CS on a pc. I use a limited number of fonts to layout our monthly newsletter. I installed the fonts I needed and they were... -
5.80, OS X, bizarre FTP weirdness
I am running Mac OS X 10.2.7 and recently upgraded from 5.6.1 to 5.8.0 following the guidance at... -
[PHP] Bizarre SQl, if issue....
Did you try to print the content of the variable? What does it contain? On Tue, 29 Jul 2003 13:29:10 -0400 "Mike At Spy"... -
Bizarre HD Problem
OS: Win98/Mandrake 9.1 I just installed a new 80GB Maxtor HD (6Y080L0) and, while my BIOS sees it and it shows up in dmesg as 'hdd', a) It... -
Bizarre IE6 CSS error
Hi all, I have the weirdest thing going on... it's hard even to describe, but bascically, IE6 seems to interpret differently the margins/padding...



Reply With Quote

